From 64700cfd377512abf5ccd7dc3f44c38069824e0b Mon Sep 17 00:00:00 2001 From: HaimKortovich Date: Thu, 23 Apr 2026 16:30:36 -0500 Subject: [PATCH] allow health to override auth --- app/middleware/auth.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/middleware/auth.py b/app/middleware/auth.py index 9708195..c2bf9ef 100644 --- a/app/middleware/auth.py +++ b/app/middleware/auth.py @@ -10,6 +10,8 @@ class AuthMiddleware(BaseHTTPMiddleware): # Skip auth for health endpoint if request.url.path == "/health": return await call_next(request) + if request.url.path == "/health/ready": + return await call_next(request) request.state.org_id = "test" response = await call_next(request) return response