Forgot to add hours_times and links to the schedule route
This commit is contained in:
parent
2bb72b97a1
commit
39413b118a
4
web.js
4
web.js
|
@ -15,7 +15,6 @@ app.use('/js', express.static(__dirname + '/resources/js'));
|
||||||
|
|
||||||
app.get('/', function (req, res) {
|
app.get('/', function (req, res) {
|
||||||
req.links = config().links;
|
req.links = config().links;
|
||||||
console.log(req.links);
|
|
||||||
res.render('homepage', req);
|
res.render('homepage', req);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -32,8 +31,9 @@ app.param('search', lookup);
|
||||||
app.param('search', schedule);
|
app.param('search', schedule);
|
||||||
|
|
||||||
app.param('search', function (req, res) {
|
app.param('search', function (req, res) {
|
||||||
|
req.links = config().links;
|
||||||
|
req.times = config().hour_times;
|
||||||
res.render('schedule', req);
|
res.render('schedule', req);
|
||||||
console.log(req);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(config().web_port);
|
app.listen(config().web_port);
|
||||||
|
|
Loading…
Reference in a new issue