Healthcheck for model server (#1350)

This commit is contained in:
Yuhong Sun
2024-04-18 16:22:38 -07:00
committed by GitHub
parent 89ff07a96b
commit e361e92230
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
from fastapi import APIRouter
from fastapi import Response
router = APIRouter(prefix="/api")
@router.get("/health")
def healthcheck() -> Response:
return Response(status_code=200)