diff --git a/lib/cartodb/controllers/map.js b/lib/cartodb/controllers/map.js index d72b6fea..8e376cb5 100644 --- a/lib/cartodb/controllers/map.js +++ b/lib/cartodb/controllers/map.js @@ -56,8 +56,8 @@ MapController.prototype.register = function(app) { const { base_url_mapconfig: mapconfigBasePath, base_url_templated: templateBasePath } = app; const useTemplate = true; - app.get(mapconfigBasePath, this.composeCreateMapMiddleware()); - app.post(mapconfigBasePath, this.composeCreateMapMiddleware()); + app.get(`${mapconfigBasePath}`, this.composeCreateMapMiddleware()); + app.post(`${mapconfigBasePath}`, this.composeCreateMapMiddleware()); app.get(`${templateBasePath}/:template_id/jsonp`, this.composeCreateMapMiddleware(useTemplate)); app.post(`${templateBasePath}/:template_id`, this.composeCreateMapMiddleware(useTemplate));