personal_website/routes/api/gameRouter.js
2023-10-04 20:16:47 +02:00

12 lines
409 B
JavaScript

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