Updated some controller names

Added tumblr oauth routes
Tumblr Get token button
This commit is contained in:
Sahat Yalkabov
2013-12-06 22:23:05 -05:00
parent a3af42e529
commit f332cf8500
2 changed files with 18 additions and 5 deletions

10
app.js
View File

@ -61,9 +61,9 @@ app.post('/account/settings', passportConf.ensureAuthenticated, user.postAccount
app.get('/partials/:name', home.partials);
app.get('/api', api.apiBrowser);
app.get('/api/foursquare', passportConf.ensureAuthenticated, api.foursquare);
app.get('/api/tumblr', passportConf.ensureAuthenticated, api.tumblr);
app.get('/api', api.getApi);
app.get('/api/foursquare', passportConf.ensureAuthenticated, api.getFoursquare);
app.get('/api/tumblr', passportConf.ensureAuthenticated, api.getTumblr);
app.get('/api/facebook', passportConf.ensureAuthenticated, api.facebook);
app.get('/contact', contact.getContact);
@ -84,6 +84,10 @@ app.get('/auth/twitter/callback', passport.authenticate('twitter', { successRedi
app.get('/auth/foursquare', api.foursquareAuth);
app.get('/auth/foursquare/callback', api.foursquareCallback);
app.get('/auth/tumblr', passport.authenticate('provider'));
app.get('/auth/tumblr/callback', passport.authenticate('provider', { successRedirect: '/', failureRedirect: '/login' }));
app.listen(app.get('port'), function() {
console.log('Express server listening on port ' + app.get('port'));
});