Created Pydantic schemas for version API responses

This commit is contained in:
Whispering Wind
2025-03-11 01:02:26 +03:30
committed by GitHub
parent 72a96999df
commit 3439503f8d

View File

@ -23,3 +23,13 @@ class ServerServicesStatusResponse(BaseModel):
hysteria_normal_sub: bool
hysteria_telegram_bot: bool
hysteria_warp: bool
class VersionInfoResponse(BaseModel):
current_version: str
class VersionCheckResponse(BaseModel):
is_latest: bool
current_version: str
latest_version: str
changelog: str