Last.fm auth callbacks

This commit is contained in:
Sahat Yalkabov
2013-12-09 17:14:20 -05:00
parent e0c8820e85
commit 67da9d7f01
2 changed files with 6 additions and 3 deletions

4
app.js
View File

@ -94,6 +94,10 @@ app.get('/auth/foursquare/callback', passport.authorize('foursquare', { failureR
app.get('/auth/tumblr', passport.authorize('tumblr'));
app.get('/auth/tumblr/callback', passport.authorize('tumblr', { failureRedirect: '/api' }), function(req, res) { res.redirect('/api/tumblr'); });
app.get('/auth/lastfm', passport.authorize('lastfm'));
app.get('/auth/lastfm/callback', passport.authorize('lastfm', { failureRedirect: '/api' }), function(req, res) { res.redirect('/api/lastfm'); });
app.listen(app.get('port'), function() {
console.log('Express server listening on port ' + app.get('port'));
});