Создан пример приложения

This commit is contained in:
2026-03-20 17:28:57 +03:00
parent ea8694bced
commit 43869ac372
7 changed files with 66 additions and 0 deletions

2
api/routers/__init__.py Normal file
View File

@@ -0,0 +1,2 @@
"""Application routers package."""

14
api/routers/health.py Normal file
View File

@@ -0,0 +1,14 @@
from fastapi import APIRouter
router = APIRouter()
@router.get("/health")
def health() -> dict:
return {"status": "ok"}
@router.get("/")
def root() -> dict:
return {"message": "FastAPI is running"}