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