node-go/packages/server/routes/api.js
2020-02-05 16:54:09 -08:00

12 lines
374 B
JavaScript

const express = require('express');
const router = express.Router();
const apiIndexController = require('../controllers/api/apiIndex');
const apiRoomRouter = require('./api/room');
const apiGameRouter = require('./api/game');
router.use('/rooms', apiRoomRouter);
router.use('/games', apiGameRouter);
router.get('/', apiIndexController.apiIndex);
module.exports = router;