Google linking and unlinking works successfully now

This commit is contained in:
Sahat Yalkabov
2013-12-13 01:12:59 -05:00
parent 9de1748bc2
commit 7175005e2c
3 changed files with 7 additions and 7 deletions

2
app.js
View File

@ -58,7 +58,7 @@ 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.postDeleteAccount);
app.post('/account/unlink/:provider', passportConf.isAuthenticated, user.getOauthUnlink);
app.get('/account/unlink/:provider', passportConf.isAuthenticated, user.getOauthUnlink);
app.get('/api', api.getApi);
app.get('/api/foursquare', passportConf.isAuthenticated, passportConf.isAuthorized, api.getFoursquare);