feat: stop ongoing interpretation

This commit is contained in:
karishmas6
2024-06-09 00:39:57 +05:30
parent a8d2a1ee80
commit 3ccf3d247f

View File

@@ -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');
});