Follow middleware naming convention

This commit is contained in:
Daniel García Aubert
2018-02-28 13:10:46 +01:00
parent 26df09b13f
commit 102b11b1b5
@@ -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;