Oauth linking and unlinking controller and route placeholders

This commit is contained in:
Sahat Yalkabov
2013-12-12 14:05:35 -05:00
parent ef967cafda
commit e0bdccbd2c
2 changed files with 16 additions and 3 deletions

2
app.js
View File

@ -58,6 +58,8 @@ app.get('/account', passportConf.isAuthenticated, user.getAccount);
app.post('/account/profile', passportConf.isAuthenticated, user.postAccountProfile);
app.post('/account/settings', passportConf.isAuthenticated, user.postAccountSettings);
app.post('/account/delete', passportConf.isAuthenticated, user.deleteAccount);
app.post('/account/link', passportConf.isAuthenticated, user.postOauthLink);
app.post('/account/unlink', passportConf.isAuthenticated, user.postOauthUnlink);
app.get('/api', api.getApi);
app.get('/api/foursquare', passportConf.isAuthenticated, passportConf.isAuthorized, api.getFoursquare);