11 lines
294 B
JavaScript
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; |