summaryrefslogtreecommitdiff
path: root/routes/games.js
blob: 67d105d81a99edaf1847ba62337bfd249e313d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import express from "express";

import { gameId_get } from "../controllers/games/gameId.js";
import { root_get } from "../controllers/games/root.js";
import requireAuth from "../middlewares/requireAuth.js";
import session from "../middlewares/sessions.js";

const router = express.Router();
router.use(session);
router.use(requireAuth);

router.get("/", root_get);
router.get("/:gameId(\\d+)", gameId_get);

export default router;