702650376e
- Add AppSetting model for key-value settings storage in PostgreSQL - Create ConfigService with DB-first, env-var-fallback resolution - Add admin-only /api/v1/settings CRUD endpoints - Update tasks.py to use ConfigService for SMTP config - Seed default settings on application startup - Add 24 unit tests for ConfigService (all passing) Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> Agent-Logs-Url: https://github.com/christianlouis/pop_puller_to_gmail/sessions/ce88d4a8-d8c2-49b3-95a1-30592105a769
37 lines
1004 B
Python
37 lines
1004 B
Python
"""
|
|
API v1 router aggregation.
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.v1.endpoints import (
|
|
auth,
|
|
users,
|
|
mail_accounts,
|
|
notifications,
|
|
subscriptions,
|
|
admin,
|
|
providers,
|
|
app_settings,
|
|
)
|
|
|
|
api_router = APIRouter()
|
|
|
|
# Include all endpoint routers
|
|
api_router.include_router(auth.router, prefix="/auth", tags=["Authentication"])
|
|
api_router.include_router(users.router, prefix="/users", tags=["Users"])
|
|
api_router.include_router(
|
|
mail_accounts.router, prefix="/mail-accounts", tags=["Mail Accounts"]
|
|
)
|
|
api_router.include_router(
|
|
providers.router, prefix="/providers", tags=["Providers & Gmail"]
|
|
)
|
|
api_router.include_router(
|
|
notifications.router, prefix="/notifications", tags=["Notifications"]
|
|
)
|
|
api_router.include_router(
|
|
subscriptions.router, prefix="/subscriptions", tags=["Subscriptions"]
|
|
)
|
|
api_router.include_router(admin.router, prefix="/admin", tags=["Admin"])
|
|
api_router.include_router(app_settings.router, prefix="/settings", tags=["Settings"])
|