Skip to content

Commit 70fde95

Browse files
committed
fix: parse body before auth for /down
1 parent e5c3769 commit 70fde95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/src/routers/down.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const configurable_auth = require('../middleware/configurable_auth.js');
2929
// -----------------------------------------------------------------------//
3030
// GET /down
3131
// -----------------------------------------------------------------------//
32-
router.post('/down', configurable_auth(), express.json(), express.urlencoded({ extended: true }), async (req, res, next)=>{
32+
router.post('/down', express.json(), express.urlencoded({ extended: true }), configurable_auth(), async (req, res, next)=>{
3333
// check subdomain
3434
const actor = req.actor;
3535

0 commit comments

Comments
 (0)