personal_website/routes/api/gameRouter.js
2024-07-16 14:24:01 +02:00

12 lines
422 B
JavaScript

var express = require('express');
var router = express.Router();
var gameController = require('../../controllers/gameController.js');
var checkAuthenticated = require('../../miscellaneous/checkAuthenticated.js').default;
router.get('/', gameController.list);
router.post('/', checkAuthenticated, gameController.create);
router.delete('/', checkAuthenticated, gameController.remove);
module.exports = router;