mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 03:41:40 +02:00
Fix language path (#5032)
This commit is contained in:
committed by
Julian Lam
parent
2f432d7994
commit
4938b00635
@@ -142,7 +142,7 @@ module.exports = function(app, middleware, hotswapIds) {
|
||||
}
|
||||
|
||||
app.use(middleware.privateUploads);
|
||||
app.use('/language/:code', middleware.processLanguages);
|
||||
app.use(relativePath + '/language/:code', middleware.processLanguages);
|
||||
app.use(relativePath, express.static(path.join(__dirname, '../../', 'public'), {
|
||||
maxAge: app.enabled('cache') ? 5184000000 : 0
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user