3d-interface/controllers/prototype/index.js

38 lines
922 B
JavaScript
Raw Normal View History

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');
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');
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);
});
}
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);
});
}