Spaces:
Sleeping
Sleeping
Do not overshare information on the /health endpoint
Browse files- app/routes/health.py +3 -8
app/routes/health.py
CHANGED
|
@@ -1,13 +1,8 @@
|
|
| 1 |
-
from fastapi import APIRouter
|
| 2 |
|
| 3 |
router = APIRouter()
|
| 4 |
|
| 5 |
|
| 6 |
@router.get("/health")
|
| 7 |
-
async def health(
|
| 8 |
-
return {
|
| 9 |
-
"status": "ok",
|
| 10 |
-
"folder": request.app.state.settings.mail_folder_name,
|
| 11 |
-
"folder_id": getattr(request.app.state, "folder_id", None),
|
| 12 |
-
"subscription_id": getattr(request.app.state, "subscription_id", None),
|
| 13 |
-
}
|
|
|
|
| 1 |
+
from fastapi import APIRouter
|
| 2 |
|
| 3 |
router = APIRouter()
|
| 4 |
|
| 5 |
|
| 6 |
@router.get("/health")
|
| 7 |
+
async def health() -> dict:
|
| 8 |
+
return {"status": "ok"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|