|
|
|
@ -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) {
|
|
|
|
|