13 lines
279 B
Python
13 lines
279 B
Python
"""健康检查 API。"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.core.config import settings
|
|
|
|
router = APIRouter(tags=["health"])
|
|
|
|
|
|
@router.get("/health")
|
|
async def health() -> dict[str, str]:
|
|
return {"status": "ok", "app_name": settings.app_name, "env": settings.app_env}
|