personal_website/routes/api/gameRouter.ts
2024-07-16 15:20:26 +02:00

13 lines
389 B
TypeScript

import express from "express";
import gameController from '../../controllers/gameController';
import checkAuthenticated from '../../miscellaneous/checkAuthenticated';
const router = express.Router();
router.get('/', gameController.list);
router.post('/', checkAuthenticated, gameController.create);
router.delete('/', checkAuthenticated, gameController.remove);
export default router;