13 lines
245 B
JavaScript
13 lines
245 B
JavaScript
|
const router = require('express').Router();
|
||
|
|
||
|
module.exports = router;
|
||
|
|
||
|
const data = require('./data/list.json');
|
||
|
|
||
|
router.get('/', (req, res) => {
|
||
|
res.send(data);
|
||
|
// res.status(500).send({
|
||
|
// message: 'Internal server error'
|
||
|
// });
|
||
|
});
|