diff --git a/server/src/routes/record.ts b/server/src/routes/record.ts index 3676e4d5..7c157291 100644 --- a/server/src/routes/record.ts +++ b/server/src/routes/record.ts @@ -50,3 +50,12 @@ router.post('/start', (req, res) => { return res.send(id); }); +/** + * GET endpoint for terminating the remote browser recording session. + * returns whether the termination was successful + */ +router.get('/stop/:browserId', async (req, res) => { + const success = await destroyRemoteBrowser(req.params.browserId); + return res.send(success); +}); +