node-go/server/routes/api.js

13 lines
374 B
JavaScript
Raw Permalink Normal View History

2020-01-10 01:44:58 +00:00
const express = require('express');
const router = express.Router();
2020-01-18 00:32:40 +00:00
const apiIndexController = require('../controllers/api/apiIndex');
2020-01-18 23:42:45 +00:00
const apiRoomRouter = require('./api/room');
const apiGameRouter = require('./api/game');
2020-01-18 23:42:45 +00:00
router.use('/rooms', apiRoomRouter);
router.use('/games', apiGameRouter);
2020-01-10 01:44:58 +00:00
2020-01-18 00:32:40 +00:00
router.get('/', apiIndexController.apiIndex);
2020-01-10 01:44:58 +00:00
module.exports = router;