Rename attributes middleware
This commit is contained in:
parent
9dcd5ff332
commit
83ab65163d
@ -106,7 +106,7 @@ LayergroupController.prototype.register = function(app) {
|
||||
userMiddleware(),
|
||||
this.prepareContext,
|
||||
getMapStoreMapConfigProvider(this.mapStore, this.userLimitsApi),
|
||||
attributes(this.attributesBackend),
|
||||
getFeatureAttributes(this.attributesBackend),
|
||||
setCacheControlHeader(),
|
||||
setLastModifiedHeader(),
|
||||
getAffectedTables(this.layergroupAffectedTables, this.pgConnection),
|
||||
@ -348,8 +348,8 @@ function dataviewSearch (dataviewBackend) {
|
||||
};
|
||||
}
|
||||
|
||||
function attributes (attributesBackend) {
|
||||
return function attributesMiddleware (req, res, next) {
|
||||
function getFeatureAttributes (attributesBackend) {
|
||||
return function getFeatureAttributesMiddleware (req, res, next) {
|
||||
req.profiler.start('windshaft.maplayer_attribute');
|
||||
|
||||
const { mapConfigProvider } = res.locals;
|
||||
|
Loading…
Reference in New Issue
Block a user