Use template string

This commit is contained in:
Daniel García Aubert
2018-03-16 13:08:00 +01:00
parent 071a5a4bdf
commit 7b11cdcb74
+2 -2
View File
@@ -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));