From 54ac23cc7a708cda27cb7b6e9393b3ba66dbcd89 Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak
Date: Mon, 30 Jan 2017 15:22:20 -0700
Subject: [PATCH] Revert "No 404 responses for missing language files"
This reverts commit f0c941e5aeef86f3b31e6512643bd15d14afd839.
---
src/routes/index.js | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/routes/index.js b/src/routes/index.js
index d33fd316b5..99ff3a7f27 100644
--- a/src/routes/index.js
+++ b/src/routes/index.js
@@ -157,11 +157,6 @@ module.exports = function (app, middleware, hotswapIds) {
res.redirect(relativePath + '/assets/language' + req.path + '.json?' + meta.config['cache-buster']);
});
- // stop 404's on `/assets/language` route
- app.use(relativePath + '/assets/language', function (req, res) {
- res.json({});
- });
-
app.use(relativePath, express.static(path.join(__dirname, '../../', 'public'), {
maxAge: app.enabled('cache') ? 5184000000 : 0
}));