todoapp-us6a2a/app/api/v1/router.py
Automated Action 1df01b998d Add endpoint to read CONTENT environment variable
- Created a new endpoint at /api/v1/env/content that returns the CONTENT environment variable
- Added error handling for when the environment variable is not set
- Updated documentation with new endpoint information and usage examples
- Added environment variables as a new feature in README
2025-05-31 21:31:18 +00:00

9 lines
300 B
Python

from fastapi import APIRouter
from app.api.v1 import env_vars, health, todos
api_router = APIRouter()
api_router.include_router(health.router, tags=["health"])
api_router.include_router(todos.router, prefix="/todos", tags=["todos"])
api_router.include_router(env_vars.router, tags=["environment"])