mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
closes #1400, bunch of other fixes to 404, 403 in accounts
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user