We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba1706b commit d713437Copy full SHA for d713437
backend/app/main.py
@@ -20,6 +20,11 @@ def custom_generate_unique_id(route: APIRoute) -> str:
20
generate_unique_id_function=custom_generate_unique_id,
21
)
22
23
+# Add health check endpoint directly to main app
24
+@app.get("/health", tags=["health"])
25
+async def health_check():
26
+ return {"status": "ok", "message": "Service is healthy"}
27
+
28
# Set all CORS enabled origins
29
if settings.all_cors_origins:
30
app.add_middleware(
@@ -30,4 +35,4 @@ def custom_generate_unique_id(route: APIRoute) -> str:
35
allow_headers=["*"],
31
36
32
37
33
-app.include_router(api_router, prefix=settings.API_V1_STR)
38
+app.include_router(api_router, prefix=settings.API_V1_STR)
0 commit comments