feat: перенос структуры приложения из первой лабы

This commit is contained in:
Ильяс
2026-10-22 22:45:34 +03:00
parent 65003b6119
commit 5893d051c1
19 changed files with 1220 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
from __future__ import annotations
from fastapi import APIRouter, status
from app.schemas import HealthResponse
router = APIRouter(tags=["health"])
@router.get(
"/health/live", response_model=HealthResponse, status_code=status.HTTP_200_OK
)
async def health_live() -> HealthResponse:
return HealthResponse(status="ok")
@router.get(
"/health/ready", response_model=HealthResponse, status_code=status.HTTP_200_OK
)
async def health_ready() -> HealthResponse:
return HealthResponse(status="ok")