fix: check healthy when init

This commit is contained in:
Krishav Raj Singh 2025-10-08 15:33:26 +05:30
parent f10aa8da0b
commit 9a2ae7e09a
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ app.post('/api/init', async (req, res) => {
const {api_key} = req.body; const {api_key} = req.body;
const result = await browserAutomation.init(api_key); const result = await browserAutomation.init(api_key);
if (result.status === "initialized") { if (result.status === "initialized" || result.status === "healthy") {
res.status(200).json({ res.status(200).json({
"status": "healthy", "status": "healthy",
"service": "browserApi" "service": "browserApi"