12 lines
232 B
Python
12 lines
232 B
Python
from typing import Dict
|
|
|
|
from fastapi import APIRouter
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/health")
|
|
async def healthcheck() -> Dict[str, str]:
|
|
"""简单健康检查,供阶段 0 自检使用。"""
|
|
return {"status": "ok"}
|