diff --git a/server/src/routes/record.ts b/server/src/routes/record.ts index 816349f7..5fc9428f 100644 --- a/server/src/routes/record.ts +++ b/server/src/routes/record.ts @@ -104,3 +104,10 @@ router.get('/interpret', async (req, res) => { } }); +/** + * GET endpoint for stopping an ongoing interpretation of the currently generated workflow. + */ +router.get('/interpret/stop', async (req, res) => { + await stopRunningInterpretation(); + return res.send('interpretation stopped'); +});