INNER CODE UNIT · Python
read_index
Minituff/nautical-backup · app/api/main.py:53
async def read_index():
return FileResponse(f"{static_abs_file_path}/index.html")
@app.get("/health-check")
async def health_check():
return {"status": "healthy"}
@app.get("/auth")
def auth(username: Annotated[str, Depends(authorize)]):
return {"username": username}
if __name__ == "__main__":
uvicorn.run("main:app", host="0.0.0.0", port=8069, reload=True, log_level="debug")