From 2e4b9dc1cc48e5d35243bcef32b8acd29171bf23 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Sat, 17 Feb 2018 18:11:46 +0100 Subject: Move school spesific files to school spesifc folders --- src/server/routes/getSchedule.js | 6 +++--- src/server/routes/index.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server/routes') diff --git a/src/server/routes/getSchedule.js b/src/server/routes/getSchedule.js index 9d965bf..1734cd8 100644 --- a/src/server/routes/getSchedule.js +++ b/src/server/routes/getSchedule.js @@ -4,8 +4,8 @@ const router = express.Router(); const request = require('request'); const iconv = require('iconv-lite'); -const getMeetingpointData = require('../lib/getMeetingpointData'); -const getURLOfUser = require('../lib/getURLOfUser'); +const getScheduleData = require('../lib/schools/hetmml/getScheduleData'); +const getURLOfUser = require('../lib/schools/hetmml/getURLOfUser'); // copied from http://www.meetingpointmco.nl/Roosters-AL/doc/dagroosters/untisscripts.js, // were using the same code as they do to be sure that we always get the same @@ -25,7 +25,7 @@ function getWeekNumber(target) { } router.get('/:type/:value', (req, res, next) => { - getMeetingpointData().then(({ users }) => { + getScheduleData().then(({ users }) => { const { type, value } = req.params; let { week } = req.query; const user = diff --git a/src/server/routes/index.js b/src/server/routes/index.js index d58962d..af82e1f 100644 --- a/src/server/routes/index.js +++ b/src/server/routes/index.js @@ -1,11 +1,11 @@ const express = require('express'); const router = express.Router(); -const getMeetingpointData = require('../lib/getMeetingpointData'); +const getScheduleData = require('../lib/schools/hetmml/getScheduleData'); /* GET home page. */ router.get(['/', '/s/*', '/t/*', '/r/*', '/c/*'], (req, res) => { - getMeetingpointData().then(({ users, dailyScheduleWeeks, basisScheduleWeeks }) => { + getScheduleData().then(({ users, dailyScheduleWeeks, basisScheduleWeeks }) => { const isBeta = process.env.BETA === '1'; const flags = []; -- cgit v1.1