mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: #7131
This commit is contained in:
@@ -53,7 +53,9 @@ function topicRoutes(app, middleware, controllers) {
|
||||
}
|
||||
|
||||
function postRoutes(app, middleware, controllers) {
|
||||
setupPageRoute(app, '/post/:pid', middleware, [], controllers.posts.redirectToPost);
|
||||
const middlewares = [middleware.maintenanceMode, middleware.registrationComplete, middleware.pluginHooks];
|
||||
app.get('/post/:pid', middleware.busyCheck, middleware.buildHeader, middlewares, controllers.posts.redirectToPost);
|
||||
app.get('/api/post/:pid', middlewares, controllers.posts.redirectToPost);
|
||||
}
|
||||
|
||||
function tagRoutes(app, middleware, controllers) {
|
||||
|
||||
Reference in New Issue
Block a user