18 lines
327 B
Python
18 lines
327 B
Python
from fastapi import APIRouter
|
|
|
|
from app.core.config import settings
|
|
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/health")
|
|
def api_healthcheck() -> dict[str, str]:
|
|
return {
|
|
"status": "ok",
|
|
"service": settings.app_name,
|
|
"environment": settings.app_env,
|
|
"control_mode": settings.control_mode,
|
|
}
|
|
|