closes #1400, bunch of other fixes to 404, 403 in accounts

This commit is contained in:
barisusakli
2014-04-30 17:24:49 -04:00
parent 8fa3baf32d
commit c8efeb7d7c
4 changed files with 50 additions and 18 deletions

View File

@@ -73,6 +73,9 @@ function categoryRoutes(app, middleware, controllers) {
}
function accountRoutes(app, middleware, controllers) {
app.get('/user/:userslug/:section?', middleware.redirectToSelf);
app.get('/api/user/:userslug/:section?', middleware.redirectToSelf);
app.get('/user/:userslug', middleware.buildHeader, middleware.checkGlobalPrivacySettings, controllers.accounts.getAccount);
app.get('/api/user/:userslug', middleware.checkGlobalPrivacySettings, controllers.accounts.getAccount);