cmoss3 commited on
Commit
5cddfb1
·
1 Parent(s): 0a367ef

Do not overshare information on the /health endpoint

Browse files
Files changed (1) hide show
  1. app/routes/health.py +3 -8
app/routes/health.py CHANGED
@@ -1,13 +1,8 @@
1
- from fastapi import APIRouter, Request
2
 
3
  router = APIRouter()
4
 
5
 
6
  @router.get("/health")
7
- async def health(request: Request) -> dict:
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"}