diff options
author | Julien Dessaux | 2022-11-21 21:39:17 +0100 |
---|---|---|
committer | Julien Dessaux | 2022-11-21 21:39:17 +0100 |
commit | 8ac636186cf5f704264e7473864c54b3edaf4049 (patch) | |
tree | 6f575d5b4dc5afc0c087e0467c4dd7d6e4a6dd6b /main.js | |
parent | cleaned up the distinction between routes and controllers (diff) | |
download | jeux-de-mots-8ac636186cf5f704264e7473864c54b3edaf4049.tar.gz jeux-de-mots-8ac636186cf5f704264e7473864c54b3edaf4049.tar.bz2 jeux-de-mots-8ac636186cf5f704264e7473864c54b3edaf4049.zip |
Added basic games handling
Diffstat (limited to '')
-rw-r--r-- | main.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ import express from "express"; import helmet from "./middlewares/helmet.js"; -import playRouter from "./routes/play.js"; +import gamesRouter from "./routes/games.js"; import rootRouter from "./routes/root.js"; const app = express(); @@ -11,7 +11,7 @@ app.use(helmet); app.set("views", "./views"); app.set("view engine", "ejs"); -app.use("/play", playRouter); +app.use("/games", gamesRouter); app.use("/static", express.static("static")); app.use("/", rootRouter); |