Reorganize to fastapi template
This commit is contained in:
3
app/api/__init__.py
Normal file
3
app/api/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
"""API package for routers."""
|
||||
|
||||
__all__ = ["health"]
|
||||
9
app/api/health.py
Normal file
9
app/api/health.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("/health", tags=["health"])
|
||||
async def health_check():
|
||||
"""Minimal health endpoint."""
|
||||
return {"status": "ok"}
|
||||
Reference in New Issue
Block a user