skeleton lab7 and tasks for grade 3

This commit is contained in:
2026-11-21 16:21:47 +03:00
parent 20afc2c790
commit 0b97f77d76
185 changed files with 15590 additions and 154 deletions
+23
View File
@@ -0,0 +1,23 @@
from fastapi import APIRouter, Request
from app.domain import health
from app.schemas.base import Health
router = APIRouter(prefix="/health", tags=["health"])
@router.get("/live")
async def liveness() -> Health:
return health.liveness()
@router.get("/ready")
async def readiness(request: Request) -> Health:
state = request.app.state
return await health.readiness(
state.engine,
state.redis,
state.s3,
state.lifecycle,
state.settings.readiness_timeout_seconds,
)