Follow middleware naming convention
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user