dynmap is no longer in use, but we'll redirect to the new path
This commit is contained in:
parent
479cb3142e
commit
7658f1400a
1 changed files with 4 additions and 0 deletions
4
index.js
4
index.js
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue