mirror of
https://github.com/invariantlabs-ai/invariant-gateway.git
synced 2026-05-24 07:44:01 +02:00
Add a health check endpoint for proxy.
This commit is contained in:
@@ -15,6 +15,13 @@ app.add_middleware(CompressMiddleware)
|
||||
|
||||
router = fastapi.APIRouter(prefix="/api/v1")
|
||||
|
||||
|
||||
@router.get("/proxy/health", tags=["health_check"], include_in_schema=False)
|
||||
async def get_proxy_info():
|
||||
"""Health check"""
|
||||
return {"message": "Hello v1/proxy"}
|
||||
|
||||
|
||||
router.include_router(open_ai_proxy, prefix="/proxy", tags=["open_ai_proxy"])
|
||||
|
||||
router.include_router(anthropic_proxy, prefix="/proxy", tags=["anthropic_proxy"])
|
||||
|
||||
Reference in New Issue
Block a user