Continuing on micro workers, and corrected some bugs

This commit is contained in:
Thomas FORGIONE
2015-09-29 17:22:48 +02:00
parent bee440668c
commit aa76fed43a
12 changed files with 149 additions and 13 deletions

View File

@@ -1,4 +1,8 @@
module.exports.index = function(req, res) {
req.session.workerId = req.params.workerId;
req.session.save();
res.setHeader('Content-Type', 'text/html');
res.render('index.jade', res.locals, function(err, result) {

View File

@@ -1,3 +1,4 @@
module.exports = {
'/intro': 'index',
'/intro/:workerId': 'index',
};