38 lines
970 B
Python
38 lines
970 B
Python
"""WealthWise API v1 router aggregation.
|
|
|
|
This module aggregates all v1 API endpoints into a single router.
|
|
Each feature domain should register its endpoints here.
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.v1.endpoints import auth, health, users
|
|
|
|
api_router = APIRouter()
|
|
|
|
# Health check endpoints
|
|
api_router.include_router(
|
|
health.router,
|
|
prefix="/health",
|
|
tags=["health"],
|
|
)
|
|
|
|
# Authentication endpoints
|
|
api_router.include_router(
|
|
auth.router,
|
|
prefix="/auth",
|
|
tags=["authentication"],
|
|
)
|
|
|
|
# User endpoints (requires authentication)
|
|
api_router.include_router(
|
|
users.router,
|
|
prefix="/users",
|
|
tags=["users"],
|
|
)
|
|
|
|
# TODO: Add more endpoint routers as features are implemented
|
|
# Example:
|
|
# from app.api.v1.endpoints import portfolios, transactions
|
|
# api_router.include_router(portfolios.router, prefix="/portfolios", tags=["portfolios"])
|
|
# api_router.include_router(transactions.router, prefix="/transactions", tags=["transactions"]) |