From 39413b118ad34ec6227a87ecd228dc889796a5ce Mon Sep 17 00:00:00 2001 From: Bram van der Veen <96aa48@gmail.com> Date: Mon, 15 Jun 2015 00:06:00 +0200 Subject: [PATCH] Forgot to add hours_times and links to the schedule route --- web.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web.js b/web.js index b6d25e4..19087f5 100644 --- a/web.js +++ b/web.js @@ -15,25 +15,25 @@ app.use('/js', express.static(__dirname + '/resources/js')); app.get('/', function (req, res) { req.links = config().links; - console.log(req.links); res.render('homepage', req); }); app.get('/rooster/:search', function (req, res) { - next(); + next(); }); app.get('/over', function (req, res) { - res.send('Hier kun je lezen over werkmanrooster.'); + res.send('Hier kun je lezen over werkmanrooster.'); }); app.param('search', lookup); app.param('search', schedule); app.param('search', function (req, res) { - res.render('schedule', req); - console.log(req); + req.links = config().links; + req.times = config().hour_times; + res.render('schedule', req); }); app.listen(config().web_port);