mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
move static to end
This commit is contained in:
@@ -204,10 +204,6 @@ module.exports = function(app, data) {
|
||||
compileTemplates(pluginTemplates);
|
||||
});
|
||||
|
||||
app.use(relativePath, express.static(path.join(__dirname, '../../', 'public'), {
|
||||
maxAge: app.enabled('cache') ? 5184000000 : 0
|
||||
}));
|
||||
|
||||
|
||||
return middleware;
|
||||
};
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
var nconf = require('nconf'),
|
||||
path = require('path'),
|
||||
winston = require('winston'),
|
||||
controllers = require('./../controllers'),
|
||||
meta = require('./../meta'),
|
||||
@@ -187,7 +188,9 @@ module.exports = function(app, middleware) {
|
||||
groupRoutes(router, middleware, controllers);
|
||||
|
||||
|
||||
|
||||
app.use(nconf.get('relative_path'), express.static(path.join(__dirname, '../../', 'public'), {
|
||||
maxAge: app.enabled('cache') ? 5184000000 : 0
|
||||
}));
|
||||
app.use(catch404);
|
||||
app.use(handleErrors);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user