Rename response middleware
This commit is contained in:
parent
08b91f935d
commit
3e7106002d
@ -60,7 +60,7 @@ MapController.prototype.register = function(app) {
|
||||
this.afterLayergroupCreateBuilder({
|
||||
includeQuery: true
|
||||
}),
|
||||
respond,
|
||||
sendResponse,
|
||||
augmentError({
|
||||
label: 'ANONYMOUS LAYERGROUP',
|
||||
addContext: true
|
||||
@ -77,7 +77,7 @@ MapController.prototype.register = function(app) {
|
||||
this.afterLayergroupCreateBuilder({
|
||||
includeQuery: true
|
||||
}),
|
||||
respond,
|
||||
sendResponse,
|
||||
augmentError({
|
||||
label: 'ANONYMOUS LAYERGROUP',
|
||||
addContext: true
|
||||
@ -94,7 +94,7 @@ MapController.prototype.register = function(app) {
|
||||
this.afterLayergroupCreateBuilder({
|
||||
useTemplateHash: true
|
||||
}),
|
||||
respond,
|
||||
sendResponse,
|
||||
augmentError({
|
||||
label: 'NAMED MAP LAYERGROUP'
|
||||
})
|
||||
@ -110,7 +110,7 @@ MapController.prototype.register = function(app) {
|
||||
this.afterLayergroupCreateBuilder({
|
||||
useTemplateHash: true
|
||||
}),
|
||||
respond,
|
||||
sendResponse,
|
||||
augmentError({
|
||||
label: 'NAMED MAP LAYERGROUP'
|
||||
})
|
||||
@ -284,7 +284,7 @@ MapController.prototype.instantiateLayergroup = function(req, res, next) {
|
||||
});
|
||||
};
|
||||
|
||||
function respond (req, res) {
|
||||
function sendResponse (req, res) {
|
||||
const { layergroup } = res.locals;
|
||||
|
||||
res.status(200);
|
||||
|
Loading…
Reference in New Issue
Block a user