|
|
|
@ -159,11 +159,6 @@ function addCoreRoutes(app, router, middleware, callback) {
|
|
|
|
|
statics.unshift({ route: '/assets/uploads', path: nconf.get('upload_path') });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Skins
|
|
|
|
|
meta.css.supportedSkins.forEach(function (skin) {
|
|
|
|
|
app.use(relativePath + '/assets/client-' + skin + '.css', middleware.buildSkinAsset);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
statics.forEach(function (obj) {
|
|
|
|
|
app.use(relativePath + obj.route, middleware.trimUploadTimestamps, express.static(obj.path, staticOptions));
|
|
|
|
|
});
|
|
|
|
@ -171,6 +166,11 @@ function addCoreRoutes(app, router, middleware, callback) {
|
|
|
|
|
res.redirect(relativePath + '/assets/uploads' + req.path + '?' + meta.config['cache-buster']);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Skins
|
|
|
|
|
meta.css.supportedSkins.forEach(function (skin) {
|
|
|
|
|
app.use(relativePath + '/assets/client-' + skin + '.css', middleware.buildSkinAsset);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// only warn once
|
|
|
|
|
var warned = new Set();
|
|
|
|
|
|
|
|
|
|