16 lines
310 B
Python
16 lines
310 B
Python
|
|
from fastapi import APIRouter
|
||
|
|
|
||
|
|
router = APIRouter(tags=["health"])
|
||
|
|
|
||
|
|
|
||
|
|
@router.get("/health")
|
||
|
|
async def health_check():
|
||
|
|
"""Health check endpoint."""
|
||
|
|
return {"status": "healthy"}
|
||
|
|
|
||
|
|
|
||
|
|
@router.get("/")
|
||
|
|
async def root():
|
||
|
|
"""Root endpoint."""
|
||
|
|
return {"message": "Nuzlocke Tracker API", "docs": "/docs"}
|