From 06ac9eccbeb0c3f536828091a0871de07f4b8869 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 9 Jun 2024 00:37:35 +0530 Subject: [PATCH] feat: get id of active RB --- server/src/routes/record.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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); +});