From 762b0be4b4744abef16873abd08cca2133bb159b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 29 Jul 2020 08:20:41 -0400 Subject: [PATCH] feat: remove /assets/stylesheet.css --- src/routes/index.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/routes/index.js b/src/routes/index.js index fca5527047..7c43db4b43 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -167,19 +167,6 @@ function addCoreRoutes(app, router, middleware) { 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.errors.handleURIErrors); app.use(controllers.errors.handleErrors);