Moves template routing

This commit is contained in:
Raul Ochoa
2015-01-20 18:16:09 +01:00
parent 595dac57a0
commit c14157acc2
+14 -8
View File
@@ -133,6 +133,20 @@ var CartodbWindshaft = function(serverOptions) {
ws_sendError.apply(this, arguments);
};
/*******************************************************************************************************************
* Routing
******************************************************************************************************************/
var TemplateMapsController = require('./controllers/template_maps'),
templateMapsController = new TemplateMapsController(
ws, serverOptions, templateMaps, serverOptions.signedMaps, cartoData, template_baseurl
);
templateMapsController.register(ws);
/*******************************************************************************************************************
* END Routing
******************************************************************************************************************/
/**
* Helper to allow access to the layer to be used in the maps infowindow popup.
*/
@@ -198,14 +212,6 @@ var CartodbWindshaft = function(serverOptions) {
);
});
var TemplateMapsController = require('./controllers/template_maps'),
templateMapsController = new TemplateMapsController(
ws, serverOptions, templateMaps, serverOptions.signedMaps, cartoData, template_baseurl
);
templateMapsController.register(ws);
var healthCheck = new HealthCheck(cartoData, Windshaft.tilelive);
ws.get('/health', function(req, res) {
var healthConfig = global.environment.health || {};