feat: get id of active RB

This commit is contained in:
karishmas6
2024-06-09 00:37:35 +05:30
parent aabbafc4e7
commit 06ac9eccbe

View File

@@ -59,3 +59,10 @@ router.get('/stop/:browserId', async (req, res) => {
return res.send(success);
});
/**
* GET endpoint for getting the id of the active remote browser.
*/
router.get('/active', (req, res) => {
const id = getActiveBrowserId();
return res.send(id);
});