Template
mirror of
https://github.com/ijaric/voice_assistant.git
synced 2026-10-18 12:00:27 +03:00
Ручка жизнеспосоьности
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from .entity import *
|
||||
@@ -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="Схема доступности сервиса")
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user