Initial commit with Phase 0 Scaffolding
This commit is contained in:
parent
b393607602
commit
c545d4b17d
51 changed files with 7064 additions and 4 deletions
1
backend/app/api/__init__.py
Normal file
1
backend/app/api/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
# API v1 package init
|
||||
10
backend/app/api/v1/__init__.py
Normal file
10
backend/app/api/v1/__init__.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
"""API v1 router — aggregates all sub-routers."""
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
from app.api.v1.health import router as health_router
|
||||
|
||||
router = APIRouter(prefix="/api/v1")
|
||||
|
||||
# Health (unauthenticated)
|
||||
router.include_router(health_router)
|
||||
13
backend/app/api/v1/health.py
Normal file
13
backend/app/api/v1/health.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
"""Health check endpoint — unauthenticated."""
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
from app.config import settings
|
||||
|
||||
router = APIRouter(tags=["health"])
|
||||
|
||||
|
||||
@router.get("/health")
|
||||
def health_check() -> dict[str, str]:
|
||||
"""Return service health status and version."""
|
||||
return {"status": "ok", "version": settings.APP_VERSION}
|
||||
Loading…
Add table
Add a link
Reference in a new issue