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;