summaryrefslogtreecommitdiff
path: root/routes/games.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/games.js')
-rw-r--r--routes/games.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/routes/games.js b/routes/games.js
index 3a27cdb..5c4022c 100644
--- a/routes/games.js
+++ b/routes/games.js
@@ -1,18 +1,18 @@
-import express from "express";
+import express from 'express';
-import { gameId_get } from "../controllers/games/gameId.js";
-import { root_get, root_post } from "../controllers/games/root.js";
-import bodyParser from "../middlewares/formParser.js";
-import requireAuth from "../middlewares/requireAuth.js";
-import session from "../middlewares/sessions.js";
-import { checkName, checkUsername } from "../utils/checks.js";
+import { gameId_get } from '../controllers/games/gameId.js';
+import { root_get, root_post } from '../controllers/games/root.js';
+import bodyParser from '../middlewares/formParser.js';
+import requireAuth from '../middlewares/requireAuth.js';
+import session from '../middlewares/sessions.js';
+import { checkName, checkUsername } from '../utils/checks.js';
const router = express.Router();
router.use(session);
router.use(requireAuth);
-router.get("/", root_get);
-router.post("/", [bodyParser, checkName, checkUsername], root_post);
-router.get("/:gameId(\\d+)", gameId_get);
+router.get('/', root_get);
+router.post('/', [bodyParser, checkName, checkUsername], root_post);
+router.get('/:gameId(\\d+)', gameId_get);
export default router;