You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1022 B
58 lines
1022 B
# -*- coding: utf-8 -*-
|
|
"""
|
|
===================================
|
|
API v1 Router Aggregation
|
|
===================================
|
|
|
|
Responsibilities:
|
|
1. Aggregate all v1 endpoint routers
|
|
2. Add unified /api/v1 prefix
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from api.v1.endpoints import analysis, history, stocks, backtest, system_config, market, sectors
|
|
|
|
router = APIRouter(prefix="/api/v1")
|
|
|
|
router.include_router(
|
|
analysis.router,
|
|
prefix="/analysis",
|
|
tags=["Analysis"]
|
|
)
|
|
|
|
router.include_router(
|
|
history.router,
|
|
prefix="/history",
|
|
tags=["History"]
|
|
)
|
|
|
|
router.include_router(
|
|
stocks.router,
|
|
prefix="/stocks",
|
|
tags=["Stocks"]
|
|
)
|
|
|
|
router.include_router(
|
|
backtest.router,
|
|
prefix="/backtest",
|
|
tags=["Backtest"]
|
|
)
|
|
|
|
router.include_router(
|
|
system_config.router,
|
|
prefix="/system",
|
|
tags=["SystemConfig"]
|
|
)
|
|
|
|
router.include_router(
|
|
market.router,
|
|
prefix="/market",
|
|
tags=["Market"]
|
|
)
|
|
|
|
router.include_router(
|
|
sectors.router,
|
|
prefix="/sectors",
|
|
tags=["Sectors"]
|
|
) |