/**
 * Created by Lukas on 17-07-2016.
 */
var express = require('express');
var router = express.Router();

[1, 2, 3, 4].forEach((current, index) => {
    router.get('/day-' + current, function(req, res, next) {
        res.render('slides/day-' + current, { title: 'MOB: Slides day ' + current });
    });
});

module.exports = router;

/**
 * Created by Lukas on 17-07-2016.
 */
var express = require('express');
var router = express.Router();

[1, 2, 3, 4, 5].forEach((current, index) => {
    router.get('/day-' + current, function(req, res, next) {
        res.render('slides/day-' + current, { title: 'MOB: Slides day ' + current });
    });
});

module.exports = router;

Add access to day-5 slides