feat: terminate RB record session

This commit is contained in:
karishmas6
2024-06-09 00:37:11 +05:30
parent 57adb06a44
commit aabbafc4e7

View File

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