From 6a9643beb864f9dea8ee519f75124df293c41300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=C3=A1?= Date: Tue, 5 Apr 2022 17:30:18 +0100 Subject: [PATCH] fix: always run the `authorize` middleware --- lib/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes.js b/lib/routes.js index 22b72bf2..6f727b02 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -56,7 +56,7 @@ app.use('/', pairingRoutes) app.use(findOperatorId) app.use(populateDeviceId) app.use(computeSchema) -if (!devMode) app.use(authorize) +app.use(authorize) app.use(configRequiredRoutes, populateSettings) app.use(filterOldRequests)