Files
Portal-Template/backend/app/platform/health/router.py
T

18 lines
380 B
Python

from fastapi import APIRouter
from app.core.common import Message
router = APIRouter(tags=["health"])
@router.get(path="/health")
def status_check() -> Message:
"""Endpoind to check if server is running."""
return {"status": "healthy"}
@router.get(path="/ready")
def ready_check() -> Message:
"""Endpoind to check if server is ready."""
return {"status": "healthy"}