Added redirect logic

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2022-07-05 05:41:52 +01:00
parent db94ace86e
commit 1b2e0d7501
2 changed files with 11 additions and 0 deletions

3
app.js
View File

@@ -30,6 +30,9 @@ app.use(express.static(__dirname + '/build'));
// Lets try and slow down some of those exploit crawlers
app.use("/", require('./filterRoutes'));
// Redirects
app.use("/", require('./redirects'));
// Handle some iOS icon 404s
app.get("/apple-touch-icon*", function(req, res) {
res.sendFile(__dirname + '/build/images/favico/' + req.url, () => {