praca za proxy
This commit is contained in:
@@ -165,4 +165,10 @@ async def reload(creds: HTTPBasicCredentials = Depends(security)):
|
|||||||
|
|
||||||
@router.get('/health')
|
@router.get('/health')
|
||||||
async def health():
|
async def health():
|
||||||
return {'status':'ok'}
|
return {'status':'ok'}
|
||||||
|
|
||||||
|
from fastapi import Request
|
||||||
|
|
||||||
|
@router.get("/_debug/headers")
|
||||||
|
async def debug_headers(request: Request):
|
||||||
|
return {"headers": dict(request.headers)}
|
Reference in New Issue
Block a user