Реализовано хранилище вложений для лабораторной 4

This commit is contained in:
2026-11-02 23:40:07 +03:00
parent ec540a1a72
commit b99ad646e8
77 changed files with 2300 additions and 52 deletions
+17
View File
@@ -0,0 +1,17 @@
from fastapi import APIRouter, Request
from app.core.errors import ApiError
router = APIRouter()
@router.get('/health/live')
async def live():
return {'status': 'ok'}
@router.get('/health/ready')
async def ready(request: Request):
if not await request.app.state.storage.ready():
raise ApiError(503, 'Storage is unavailable')
return {'status': 'ok'}