Created isAuthorized middleware

This commit is contained in:
Sahat Yalkabov
2013-12-08 02:10:49 -05:00
parent 06db58c554
commit 51001a0497
3 changed files with 15 additions and 2 deletions

2
app.js
View File

@ -65,7 +65,7 @@ app.get('/api/foursquare', passportConf.ensureAuthenticated, api.getFoursquare);
app.get('/api/tumblr', passportConf.ensureAuthenticated, api.getTumblr);
app.get('/api/facebook', passportConf.ensureAuthenticated, api.getFacebook);
app.get('/api/scraping', api.getScraping);
app.get('/api/github', passportConf.ensureAuthenticated, api.getGithub);
app.get('/api/github', passportConf.isAuthorized('github'), api.getGithub);
app.get('/api/lastfm', api.getLastfm);
app.get('/api/nyt', api.getNewYorkTimes);
app.get('/api/twilio', api.getTwilio);