node-go/packages/play-node-go/server/routes/api/room.js

8 lines
251 B
JavaScript

const express = require('express');
const router = express.Router();
const apiRoomController = require('../../controllers/api/apiRoom');
router.get('/', apiRoomController.getAll);
router.get('/:id', apiRoomController.show);
module.exports = router;