23 lines
350 B
Python
23 lines
350 B
Python
from fastapi import APIRouter
|
|
|
|
|
|
router = APIRouter(tags=["health"])
|
|
|
|
|
|
@router.get("/health/live")
|
|
def live():
|
|
return {"status": "ok"}
|
|
|
|
|
|
@router.get("/health/ready")
|
|
def ready():
|
|
return {"status": "ok"}
|
|
|
|
|
|
@router.get("/")
|
|
def home():
|
|
return {
|
|
"service": "MTUSI Messenger",
|
|
"version": "1.1.0",
|
|
"docs": "/docs",
|
|
} |