mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-27 00:51:16 +01:00
feat: remove /assets/stylesheet.css
This commit is contained in:
@@ -167,19 +167,6 @@ function addCoreRoutes(app, router, middleware) {
|
|||||||
app.use(relativePath + '/assets/client-' + skin + '.css', middleware.buildSkinAsset);
|
app.use(relativePath + '/assets/client-' + skin + '.css', middleware.buildSkinAsset);
|
||||||
});
|
});
|
||||||
|
|
||||||
// only warn once
|
|
||||||
var warned = new Set();
|
|
||||||
|
|
||||||
// DEPRECATED (v1.12.0)
|
|
||||||
app.use(relativePath + '/assets/stylesheet.css', function (req, res) {
|
|
||||||
if (!warned.has(req.path)) {
|
|
||||||
winston.warn('[deprecated] Accessing `/assets/stylesheet.css` is deprecated to be REMOVED in NodeBB v1.12.0. ' +
|
|
||||||
'Use `/assets/client.css` to access this file');
|
|
||||||
warned.add(req.path);
|
|
||||||
}
|
|
||||||
res.redirect(relativePath + '/assets/client.css?' + meta.config['cache-buster']);
|
|
||||||
});
|
|
||||||
|
|
||||||
app.use(controllers['404'].handle404);
|
app.use(controllers['404'].handle404);
|
||||||
app.use(controllers.errors.handleURIErrors);
|
app.use(controllers.errors.handleURIErrors);
|
||||||
app.use(controllers.errors.handleErrors);
|
app.use(controllers.errors.handleErrors);
|
||||||
|
|||||||
Reference in New Issue
Block a user