personal_website/routes/api/gameRouter.js
Nikola Petrov 63346de8c1 Format
2023-10-04 20:19:16 +02:00

12 lines
411 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;