Updated URLs

This commit is contained in:
Sahat Yalkabov
2013-12-13 00:50:37 -05:00
parent bedd03c420
commit 9de1748bc2
2 changed files with 3 additions and 4 deletions

5
app.js
View File

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

View File

@ -56,7 +56,7 @@ exports.postAccountSettings = function(req, res) {
//TODO: change user's password
};
exports.deleteAccount = function(req, res) {
exports.postDeleteAccount = function(req, res) {
User.remove({ _id: req.user.id }, function(err) {
req.logout();
res.redirect('/');