Updated URLs
This commit is contained in:
5
app.js
5
app.js
@ -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);
|
||||
|
@ -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('/');
|
||||
|
Reference in New Issue
Block a user