summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorJulien Dessaux2022-11-19 18:41:35 +0100
committerJulien Dessaux2022-11-19 18:41:35 +0100
commit54e06aa44a3134dfc42db3e4b473abf5e181fc42 (patch)
tree35c2358e0cbe47d21972535b8485aa0fd9756b8d /main.js
parentUpdated dependencies and fixed lint errors (diff)
downloadjeux-de-mots-54e06aa44a3134dfc42db3e4b473abf5e181fc42.tar.gz
jeux-de-mots-54e06aa44a3134dfc42db3e4b473abf5e181fc42.tar.bz2
jeux-de-mots-54e06aa44a3134dfc42db3e4b473abf5e181fc42.zip
cleaned up the distinction between routes and controllers
Diffstat (limited to '')
-rw-r--r--main.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/main.js b/main.js
index 63528cc..b4c68b2 100644
--- a/main.js
+++ b/main.js
@@ -1,8 +1,6 @@
import express from "express";
import helmet from "./middlewares/helmet.js";
-import loginRouter from "./routes/login.js";
-import logoutRouter from "./routes/logout.js";
import playRouter from "./routes/play.js";
import rootRouter from "./routes/root.js";
@@ -13,8 +11,6 @@ app.use(helmet);
app.set("views", "./views");
app.set("view engine", "ejs");
-app.use("/login", loginRouter);
-app.use("/logout", logoutRouter);
app.use("/play", playRouter);
app.use("/static", express.static("static"));
app.use("/", rootRouter);