mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-05-24 14:33:26 +00:00
Ручка жизнеспосоьности
This commit is contained in:
parent
8d880dc528
commit
bb0e63c4c2
1
src/fastapi_app/lib/api/schemas/__init__.py
Normal file
1
src/fastapi_app/lib/api/schemas/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
from .entity import *
|
12
src/fastapi_app/lib/api/schemas/entity.py
Normal file
12
src/fastapi_app/lib/api/schemas/entity.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
import uuid
|
||||
|
||||
import pydantic
|
||||
|
||||
|
||||
class Token(pydantic.BaseModel):
|
||||
sub: uuid.UUID
|
||||
exp: int | None = None
|
||||
|
||||
|
||||
class Healthy(pydantic.BaseModel):
|
||||
status: str = pydantic.Field(..., example="healthy", description="Схема доступности сервиса")
|
1
src/fastapi_app/lib/api/v1/handlers/health/__init__.py
Normal file
1
src/fastapi_app/lib/api/v1/handlers/health/__init__.py
Normal file
|
@ -0,0 +1 @@
|
|||
from .liveness_probe import router as health_router
|
|
@ -1,8 +0,0 @@
|
|||
import uuid
|
||||
|
||||
import pydantic
|
||||
|
||||
|
||||
class Token(pydantic.BaseModel):
|
||||
sub: uuid.UUID
|
||||
exp: int | None = None
|
Loading…
Reference in New Issue
Block a user