diff --git a/server/src/routes/record.ts b/server/src/routes/record.ts index 51085a01..816349f7 100644 --- a/server/src/routes/record.ts +++ b/server/src/routes/record.ts @@ -91,3 +91,16 @@ router.get('/active/tabs', (req, res) => { return res.send([]); }); +/** + * GET endpoint for starting an interpretation of the currently generated workflow. + */ +router.get('/interpret', async (req, res) => { + try { + await interpretWholeWorkflow(); + return res.send('interpretation done'); + } catch (e) { + return res.send('interpretation done'); + return res.status(400); + } +}); +