From 2d09a214ae2f2784381a583649f983aa1fd5fb3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Mon, 2 Dec 2019 11:02:35 +0100 Subject: [PATCH] Leftovers from other PR --- lib/api/middlewares/custom-profile.js | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 lib/api/middlewares/custom-profile.js diff --git a/lib/api/middlewares/custom-profile.js b/lib/api/middlewares/custom-profile.js deleted file mode 100644 index 16ce6f9f..00000000 --- a/lib/api/middlewares/custom-profile.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = function customProfile () { - return function customProfileMiddleware (req, res, next) { - const layergroupid = res.get('X-Layergroup-Id') || req.params.token; - - if (layergroupid) { - req.profiler.add({ layergroupid }); - } - - next(); - }; -};