mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-06 06:36:25 +00:00
17 lines
329 B
Python
17 lines
329 B
Python
from fastapi import APIRouter
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/health")
|
|
def get_health():
|
|
return {"status": "healthy"}
|
|
|
|
|
|
@router.get("/ready")
|
|
def get_ready():
|
|
# child spans (`select 1` & db connection reset) was still logged,
|
|
# since i don't really wanna deal with it, let's just do that.
|
|
return {"status": "healthy"}
|
|
|