add mockdata for week API endpoint #59
@@ -31,6 +31,7 @@ var sessionStore = new MySQLStore({
|
||||
}, connection);
|
||||
|
||||
const mockDataDay = require('./mockdata-test/day.json');
|
||||
const mockDataWeek = require('./mockdata-test/week.json');
|
||||
var resourceList;
|
||||
const saltRounds = 13;
|
||||
|
||||
@@ -207,7 +208,7 @@ app.get('/API/week', function (req, res) {
|
||||
const kind = parseInt(req.query.kind);
|
||||
if (Number.isInteger(kind)) {
|
||||
//Mock Data:
|
||||
//if (kind === -1 || DEBUG) return res.send(mockDataDay);
|
||||
if (kind === -1 || DEBUG) return res.send(mockDataWeek);
|
||||
|
||||
if (kind >= 1 && kind <= 113) {
|
||||
var day = new Date();
|
||||
|
||||
1112
backend/mockdata-test/week.json
Normal file
1112
backend/mockdata-test/week.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user