Move variable declaration
This commit is contained in:
parent
95d694f6c5
commit
7bdbd4cb03
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user