route for fetching finished games

This commit is contained in:
Nathaniel Tampus
2023-04-01 23:42:33 +08:00
parent 710955b741
commit 5088e25769
3 changed files with 38 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ import * as controller from "../controllers/games.controller.js";
const router = Router();
router.route("/").get(controller.getActivePublicGames).post(controller.createGame);
router.route("/").get(controller.getGames).post(controller.createGame);
router.route("/:code").get(controller.getActiveGame);