Move middlewares to the right place

This commit is contained in:
Daniel García Aubert
2018-03-07 14:42:21 +01:00
parent ec41cddb19
commit 292dad130d
+6 -6
View File
@@ -52,14 +52,14 @@ LayergroupController.prototype.register = function(app) {
this.prepareContext,
this.getMapStoreMapConfigProvider(this.mapStore, this.userLimitsApi),
this.tile(this.tileBackend),
this.incrementSuccessMetrics(global.statsClient),
this.incrementErrorMetrics(global.statsClient),
this.setCacheControlHeader(),
this.setLastModifiedHeader(),
this.getAffectedTables(this.layergroupAffectedTables, this.pgConnection),
this.setCacheChannelHeader(),
this.setSurrogateKeyHeader(this.surrogateKeysCache),
this.incrementSuccessMetrics(global.statsClient),
this.sendResponse(),
this.incrementErrorMetrics(global.statsClient),
this.tileError(),
vectorError()
);
@@ -71,14 +71,14 @@ LayergroupController.prototype.register = function(app) {
this.prepareContext,
this.getMapStoreMapConfigProvider(this.mapStore, this.userLimitsApi),
this.tile(this.tileBackend),
this.incrementSuccessMetrics(global.statsClient),
this.incrementErrorMetrics(global.statsClient),
this.setCacheControlHeader(),
this.setLastModifiedHeader(),
this.getAffectedTables(this.layergroupAffectedTables, this.pgConnection),
this.setCacheChannelHeader(),
this.setSurrogateKeyHeader(this.surrogateKeysCache),
this.incrementSuccessMetrics(global.statsClient),
this.sendResponse(),
this.incrementErrorMetrics(global.statsClient),
this.tileError(),
vectorError()
);
@@ -91,14 +91,14 @@ LayergroupController.prototype.register = function(app) {
this.prepareContext,
this.getMapStoreMapConfigProvider(this.mapStore, this.userLimitsApi),
this.layer(this.tileBackend),
this.incrementSuccessMetrics(global.statsClient),
this.incrementErrorMetrics(global.statsClient),
this.setCacheControlHeader(),
this.setLastModifiedHeader(),
this.getAffectedTables(this.layergroupAffectedTables, this.pgConnection),
this.setCacheChannelHeader(),
this.setSurrogateKeyHeader(this.surrogateKeysCache),
this.incrementSuccessMetrics(global.statsClient),
this.sendResponse(),
this.incrementErrorMetrics(global.statsClient),
this.tileError(),
vectorError()
);