From 70fde95255532a7fe0d99c64a4efb1ae625776a4 Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Mon, 10 Feb 2025 17:54:23 -0500 Subject: [PATCH] fix: parse body before auth for /down --- src/backend/src/routers/down.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/src/routers/down.js b/src/backend/src/routers/down.js index aa81d5447..a8a8de1b4 100644 --- a/src/backend/src/routers/down.js +++ b/src/backend/src/routers/down.js @@ -29,7 +29,7 @@ const configurable_auth = require('../middleware/configurable_auth.js'); // -----------------------------------------------------------------------// // GET /down // -----------------------------------------------------------------------// -router.post('/down', configurable_auth(), express.json(), express.urlencoded({ extended: true }), async (req, res, next)=>{ +router.post('/down', express.json(), express.urlencoded({ extended: true }), configurable_auth(), async (req, res, next)=>{ // check subdomain const actor = req.actor;