3d-interface/server/controllers/thankyou/index.js

26 lines
553 B
JavaScript
Raw Normal View History

var db = require('../prototype/dbrequests.js');
var vcode = require('../../lib/vcode.js');
2015-07-29 11:04:38 +02:00
module.exports.index = function(req, res) {
2015-08-31 13:05:05 +02:00
// If not micro-worker
if (req.session.workerId === undefined) {
2015-10-06 08:38:09 +02:00
res.setHeader('Content-Type', 'text/html');
res.render('normal.jade', res.locals, function(err, result) {
res.send(result);
});
2015-07-29 11:04:38 +02:00
return;
}
res.setHeader('Content-Type', 'text/html');
res.render('vcode.jade', res.locals, function(err, result) {
res.send(result);
2015-07-29 11:04:38 +02:00
});
2015-07-29 11:04:38 +02:00
};