feat: Add production and development Docker Compose configurations, health check endpoint, and update documentation
This commit is contained in:
5
main.py
5
main.py
@@ -32,6 +32,11 @@ async def json_validation(
|
||||
return await validate_json(request, call_next)
|
||||
|
||||
|
||||
@app.get("/health", summary="Container health probe")
|
||||
async def health() -> dict[str, str]:
|
||||
return {"status": "ok"}
|
||||
|
||||
|
||||
app.mount("/static", StaticFiles(directory="static"), name="static")
|
||||
|
||||
# Include API routers
|
||||
|
||||
Reference in New Issue
Block a user