feat: start RB record session

This commit is contained in:
karishmas6
2024-06-08 23:19:31 +05:30
parent 99080b4596
commit a0f13e2c7e

View File

@@ -24,3 +24,17 @@ router.all('/', (req, res, next) => {
next() // pass control to the next handler
})
/**
* GET endpoint for starting the remote browser recording session.
* returns session's id
*/
router.get('/start', (req, res) => {
const id = initializeRemoteBrowserForRecording({
browser: chromium,
launchOptions: {
headless: true,
}
});
return res.send(id);
});