diff --git a/src/dockerproxy.js b/src/dockerproxy.js index 915cc1c42..b366759e4 100644 --- a/src/dockerproxy.js +++ b/src/dockerproxy.js @@ -134,14 +134,15 @@ async function start() { }); } - proxyServer.use(authorizeApp) - .use(attachDockerRequest) - .use(json) + proxyServer .use((req, res , next) => { // we store our route resources, like app,volumes,... in req.resources. Those are added in the load() routes req.resources = {}; next(); }) + .use(authorizeApp) + .use(attachDockerRequest) + .use(json) .use(router) .use(process) .use(middleware.lastMile());