fix(core): Route /rest/workflows/new correctly (no-changelog) (#6572)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-06-30 08:51:39 +02:00
committed by कारतोफ्फेलस्क्रिप्ट™
parent c2b9d5ac50
commit c906e7391b
2 changed files with 18 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ EEWorkflowController.put(
EEWorkflowController.get(
'/:id(\\w+)',
(req, res, next) => (req.params.id === 'new' ? next('router') : next()), // skip ee router and use free one for naming
ResponseHelper.send(async (req: WorkflowRequest.Get) => {
const { id: workflowId } = req.params;