Rename middleware
This commit is contained in:
@@ -48,7 +48,7 @@ LayergroupController.prototype.register = function(app) {
|
||||
userMiddleware(),
|
||||
this.prepareContext,
|
||||
getMapStoreMapConfigProvider(this.mapStore, this.userLimitsApi),
|
||||
tile(this.tileBackend),
|
||||
getTile(this.tileBackend),
|
||||
setCacheControlHeader(),
|
||||
setLastModifiedHeader(),
|
||||
getAffectedTables(this.layergroupAffectedTables, this.pgConnection),
|
||||
@@ -67,7 +67,7 @@ LayergroupController.prototype.register = function(app) {
|
||||
userMiddleware(),
|
||||
this.prepareContext,
|
||||
getMapStoreMapConfigProvider(this.mapStore, this.userLimitsApi),
|
||||
tile(this.tileBackend),
|
||||
getTile(this.tileBackend),
|
||||
setCacheControlHeader(),
|
||||
setLastModifiedHeader(),
|
||||
getAffectedTables(this.layergroupAffectedTables, this.pgConnection),
|
||||
@@ -394,7 +394,7 @@ function parseFormat (format = '') {
|
||||
return formatStat;
|
||||
}
|
||||
|
||||
function tile (tileBackend) {
|
||||
function getTile (tileBackend) {
|
||||
return function tileMiddleware (req, res, next) {
|
||||
req.profiler.start('windshaft.map_tile');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user