]> git.cworth.org Git - empires-server/blobdiff - lmno.js
Add new game.js with a new parent class Game
[empires-server] / lmno.js
diff --git a/lmno.js b/lmno.js
index d818cd12fb16de02af766b02b995d5eac3f43886..175fe6300472cd914c562d7271131d8024cf6281 100644 (file)
--- 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 () {