Move middlewares to the right place
This commit is contained in:
@@ -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()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user