Rename attributes middleware

This commit is contained in:
Daniel García Aubert 2018-03-07 18:41:41 +01:00
parent 9dcd5ff332
commit 83ab65163d

View File

@ -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;