15 lines
212 B
Python
15 lines
212 B
Python
from fastapi import APIRouter
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/health")
|
|
def health() -> dict:
|
|
return {"status": "ok"}
|
|
|
|
|
|
@router.get("/")
|
|
def root() -> dict:
|
|
return {"message": "FastAPI is running"}
|
|
|