personal_website/routes/api/gameRouter.js
2023-08-02 18:28:58 +02:00

11 lines
294 B
JavaScript

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