Move variable declaration

This commit is contained in:
Daniel García Aubert 2018-03-16 16:42:47 +01:00
parent 95d694f6c5
commit 7bdbd4cb03

View File

@ -53,11 +53,12 @@ module.exports = MapController;
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());
const useTemplate = true;
app.get(`${templateBasePath}/:template_id/jsonp`, this.composeCreateMapMiddleware(useTemplate));
app.post(`${templateBasePath}/:template_id`, this.composeCreateMapMiddleware(useTemplate));