Redirect to login page
()
| 293 | |
| 294 | @app.get("/", response_class=HTMLResponse) |
| 295 | async def index(): |
| 296 | """Redirect to login page""" |
| 297 | login_file = static_path / "login.html" |
| 298 | if login_file.exists(): |
| 299 | return _static_page_response(login_file) |
| 300 | return HTMLResponse(content="<h1>Flow2API</h1><p>Frontend not found</p>", status_code=404) |
| 301 | |
| 302 | |
| 303 | @app.get("/login", response_class=HTMLResponse) |
nothing calls this directly
no test coverage detected