Initial commit: 000-platform project skeleton
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
17
backend/app/routers/health.py
Normal file
17
backend/app/routers/health.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""健康检查路由"""
|
||||
from fastapi import APIRouter
|
||||
|
||||
from ..config import get_settings
|
||||
|
||||
router = APIRouter(tags=["health"])
|
||||
settings = get_settings()
|
||||
|
||||
|
||||
@router.get("/health")
|
||||
async def health_check():
|
||||
"""健康检查"""
|
||||
return {
|
||||
"status": "ok",
|
||||
"app": settings.APP_NAME,
|
||||
"version": settings.APP_VERSION
|
||||
}
|
||||
Reference in New Issue
Block a user