2015-05-05 11:56:35 +02:00
|
|
|
module.exports.index = function(req, res) {
|
|
|
|
res.setHeader('Content-Type', 'text/html');
|
|
|
|
|
2015-05-05 16:30:51 +02:00
|
|
|
res.render('index.jade', res.locals, function(err, result) {
|
2015-05-05 11:56:35 +02:00
|
|
|
res.send(result);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports.arrows = function(req, res) {
|
|
|
|
res.setHeader('Content-Type', 'text/html');
|
|
|
|
|
2015-05-06 14:54:02 +02:00
|
|
|
res.locals.cameraStyle = 'arrows';
|
2015-05-05 11:56:35 +02:00
|
|
|
|
2015-05-05 16:30:51 +02:00
|
|
|
res.render('prototype.jade', res.locals, function(err, result) {
|
2015-05-05 11:56:35 +02:00
|
|
|
res.send(result);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports.viewports = function(req, res) {
|
|
|
|
res.setHeader('Content-Type', 'text/html');
|
|
|
|
|
2015-05-06 14:54:02 +02:00
|
|
|
res.locals.cameraStyle = 'viewports';
|
2015-05-05 11:56:35 +02:00
|
|
|
|
2015-05-05 16:30:51 +02:00
|
|
|
res.render('prototype.jade', res.locals, function(err, result) {
|
2015-05-05 11:56:35 +02:00
|
|
|
res.send(result);
|
|
|
|
});
|
|
|
|
}
|
2015-05-11 08:45:13 +02:00
|
|
|
|
|
|
|
module.exports.reverse = function(req, res) {
|
|
|
|
res.setHeader('Content-Type', 'text/html');
|
|
|
|
|
|
|
|
res.locals.cameraStyle = 'reverse';
|
|
|
|
|
|
|
|
res.render('prototype.jade', res.locals, function(err, result) {
|
|
|
|
res.send(result);
|
|
|
|
});
|
|
|
|
}
|