Follow middleware pattern

This commit is contained in:
Daniel García Aubert
2018-03-01 18:09:49 +01:00
parent 2c762813ba
commit bd93e7dc7e
2 changed files with 30 additions and 28 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ module.exports = function prepareContextMiddleware(authApi, pgConnection) {
return [
locals(),
cleanUpQueryParams(),
layergroupToken,
layergroupToken(),
credentials(),
authorize(authApi),
dbConnSetup(pgConnection)