Cleaning and coin events

This commit is contained in:
Thomas FORGIONE
2015-05-19 11:03:53 +02:00
parent d6e8686b3f
commit ee3bf01ab0
12 changed files with 124 additions and 49 deletions

View File

@@ -26,7 +26,6 @@ module.exports.index = function(req, res) {
module.exports.arrows = function(req, res) {
createNewId(req, function() {
res.setHeader('Content-Type', 'text/html');
res.locals.cameraStyle = 'arrows';
@@ -34,26 +33,29 @@ module.exports.arrows = function(req, res) {
res.render('prototype.jade', res.locals, function(err, result) {
res.send(result);
});
});
}
module.exports.viewports = function(req, res) {
res.setHeader('Content-Type', 'text/html');
createNewId(req, function() {
res.setHeader('Content-Type', 'text/html');
res.locals.cameraStyle = 'viewports';
res.locals.cameraStyle = 'viewports';
res.render('prototype.jade', res.locals, function(err, result) {
res.send(result);
res.render('prototype.jade', res.locals, function(err, result) {
res.send(result);
});
});
}
module.exports.reverse = function(req, res) {
res.setHeader('Content-Type', 'text/html');
createNewId(req, function() {
res.setHeader('Content-Type', 'text/html');
res.locals.cameraStyle = 'reverse';
res.locals.cameraStyle = 'reverse';
res.render('prototype.jade', res.locals, function(err, result) {
res.send(result);
res.render('prototype.jade', res.locals, function(err, result) {
res.send(result);
});
});
}