From 3ccf3d247f4f6d5c71853e2ebdaf619a288fa021 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 9 Jun 2024 00:39:57 +0530 Subject: [PATCH] feat: stop ongoing interpretation --- server/src/routes/record.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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'); +});