14 lines
332 B
JavaScript
Executable File
14 lines
332 B
JavaScript
Executable File
const express = require('express');
|
|
const router = express.Router();
|
|
const apiController = require('../controllers/api.js');
|
|
|
|
router.route('/')
|
|
.get(apiController.getHome);
|
|
|
|
router.route('/game/quizz')
|
|
.get(apiController.game.quizz);
|
|
|
|
router.route('/game/check')
|
|
.get(apiController.game.check);
|
|
|
|
module.exports = router; |