mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-05-24 14:33:26 +00:00
add handler
This commit is contained in:
parent
84bfcdac5b
commit
659271d2b0
15
src/fastapi_app/lib/api/v1/handlers/health/liveness_probe.py
Normal file
15
src/fastapi_app/lib/api/v1/handlers/health/liveness_probe.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
import fastapi
|
||||
|
||||
import lib.api.v1.schemas as api_shemas
|
||||
|
||||
router = fastapi.APIRouter()
|
||||
|
||||
|
||||
@router.get(
|
||||
"/",
|
||||
response_model=api_shemas.Healthy,
|
||||
summary="Статус работоспособности",
|
||||
description="Проверяет доступность сервиса FastAPI.",
|
||||
)
|
||||
async def health():
|
||||
return api_shemas.Healthy(status="healthy")
|
Loading…
Reference in New Issue
Block a user