- Added all seven issued service trees without omissions. - Preserved the supplied runtime configuration, binaries, and assets.
10 lines
213 B
Python
Executable File
10 lines
213 B
Python
Executable File
from fastapi import APIRouter
|
|
|
|
from backend.app.db import operations
|
|
|
|
router = APIRouter(prefix="/api", tags=["system"])
|
|
|
|
@router.get("/health")
|
|
async def health():
|
|
return {"ok": await operations.ping() == 1}
|