X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lmno.js;h=175fe6300472cd914c562d7271131d8024cf6281;hb=de78893aec1d5a4a0ae84610f2f01f78e9455f18;hp=d818cd12fb16de02af766b02b995d5eac3f43886;hpb=ab53a3a530ad30db6cf52b8507fa1cbddb28eecf;p=empires-server diff --git a/lmno.js b/lmno.js index d818cd1..175fe63 100644 --- a/lmno.js +++ b/lmno.js @@ -155,7 +155,6 @@ app.use('/:engine([^/]+)/:game_id([a-zA-Z0-9]{4})', (request, response, next) => const old_path = new RegExp(`/${engine}/${game_id}/?`); const new_path = `/${engine}/${canon_id}/`; const new_url = request.originalUrl.replace(old_path, new_path); - console.log("Redirecting from " + request.originalUrl + " to " + new_url); response.redirect(301, new_url); return; } @@ -252,7 +251,7 @@ app.get('/admin/', auth_admin, (request, response) => { /* Mount sub apps. only _after_ we have done all the middleware we need. */ for (let key in engines) { const engine = engines[key]; - app.use(`/${engine.name}/[a-zA-Z0-9]{4}/`, engine.app); + app.use(`/${engine.name}/[a-zA-Z0-9]{4}/`, engine.router); } app.listen(4000, function () {