Get background browser runtime preparation status.
(
method: str = "browser",
token: str = Depends(verify_admin_token)
)
| 1889 | |
| 1890 | @router.get("/api/captcha/runtime-status") |
| 1891 | async def get_captcha_runtime_status( |
| 1892 | method: str = "browser", |
| 1893 | token: str = Depends(verify_admin_token) |
| 1894 | ): |
| 1895 | """Get background browser runtime preparation status.""" |
| 1896 | runtime_method = _normalize_runtime_method(method) |
| 1897 | task = captcha_runtime_prepare_tasks.get(runtime_method) |
| 1898 | status = get_runtime_status(runtime_method) |
| 1899 | status["method"] = runtime_method |
| 1900 | status["task_running"] = bool(task and not task.done()) |
| 1901 | return status |
| 1902 | |
| 1903 | |
| 1904 | @router.get("/api/captcha/config") |
nothing calls this directly
no test coverage detected