From 102b11b1b5e16726312c9eb82c55b4f8d6bb165b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Wed, 28 Feb 2018 13:10:46 +0100 Subject: [PATCH] Follow middleware naming convention --- lib/cartodb/middleware/context/apikey-credentials.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cartodb/middleware/context/apikey-credentials.js b/lib/cartodb/middleware/context/apikey-credentials.js index 5302050e..225c8ab6 100644 --- a/lib/cartodb/middleware/context/apikey-credentials.js +++ b/lib/cartodb/middleware/context/apikey-credentials.js @@ -1,6 +1,6 @@ 'use strict'; -module.exports = function() { +module.exports = function apikeyToken () { return function apikeyTokenMiddleware(req, res, next) { const apikeyCredentials = getApikeyCredentialsFromRequest(req); res.locals.api_key = apikeyCredentials.token;