2019-10-29 15:08:56 +01:00
|
|
|
const express = require('express');
|
|
|
|
const fs = require('fs');
|
|
|
|
|
2019-10-29 14:47:53 +01:00
|
|
|
var router = express.Router();
|
|
|
|
|
|
|
|
/* GET home page. */
|
|
|
|
router.get('/', function(req, res, next) {
|
2019-10-29 15:08:56 +01:00
|
|
|
res.json(JSON.parse(fs.readFileSync('../database/data.json').toString()));
|
2019-10-29 14:47:53 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = router;
|