MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / index

Function index

src/main.py:295–300  ·  view source on GitHub ↗

Redirect to login page

()

Source from the content-addressed store, hash-verified

293
294@app.get("/", response_class=HTMLResponse)
295async 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)

Callers

nothing calls this directly

Calls 1

_static_page_responseFunction · 0.85

Tested by

no test coverage detected