dynmap is no longer in use, but we'll redirect to the new path

This commit is contained in:
Firepup Sixfifty 2024-09-30 12:11:55 -05:00
parent 479cb3142e
commit 7658f1400a
Signed by: Firepup650
SSH key fingerprint: SHA256:cb8sEJwc0kQJ6/nMUhscWRe35itf0NFMdSKl3v4qt48

View file

@ -208,6 +208,10 @@ app.get("/cause-error-403", function(req, res) {
app.get('/', function(req, res) {
res.sendFile(path.join(dir + "pages/", `index.html`));
});
app.get("/dynmap", function(req, res) {
return res.redirect("/bluemap/")
next();
});
app.get(/\.html$/, function(req, res) {
const strippedUrl = req.url.slice(0, -5);
return res.redirect(strippedUrl);