aboutsummaryrefslogtreecommitdiff
path: root/src/server/routes
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-02-08 18:03:50 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-02-08 18:03:50 +0100
commit3989338f0fc2bd394716b4199192b869b8e9bf3b (patch)
treeca7cf4b7c54afb61a178d88bebc5a179035afd10 /src/server/routes
parenta07e3de412d80a9aa56c580f2afe62025b0878f3 (diff)
Add basis schedule support to the backend
Diffstat (limited to 'src/server/routes')
-rw-r--r--src/server/routes/getSchedule.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/routes/getSchedule.js b/src/server/routes/getSchedule.js
index 5e9bb29..9d965bf 100644
--- a/src/server/routes/getSchedule.js
+++ b/src/server/routes/getSchedule.js
@@ -41,7 +41,9 @@ router.get('/:type/:value', (req, res, next) => {
const { index } = user;
- const url = getURLOfUser(type, index, week);
+ const scheduleType = req.query.type || 'dag';
+
+ const url = getURLOfUser(scheduleType, type, index, week);
request(url, { encoding: null }, (err, data) => {
if (err) {