diff --git a/server/src/routes/record.ts b/server/src/routes/record.ts index 7c157291..79ce2f73 100644 --- a/server/src/routes/record.ts +++ b/server/src/routes/record.ts @@ -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); +});