forked from ZhuLinsen/daily_stock_analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrouter.py
More file actions
59 lines (48 loc) · 1.01 KB
/
Copy pathrouter.py
File metadata and controls
59 lines (48 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- coding: utf-8 -*-
"""
===================================
API v1 路由聚合
===================================
职责:
1. 聚合 v1 版本的所有 endpoint 路由
2. 统一添加 /api/v1 前缀
"""
from fastapi import APIRouter
from api.v1.endpoints import analysis, auth, history, stocks, backtest, system_config, agent
# 创建 v1 版本主路由
router = APIRouter(prefix="/api/v1")
router.include_router(
auth.router,
prefix="/auth",
tags=["Auth"]
)
router.include_router(
agent.router,
prefix="/agent",
tags=["Agent"]
)
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"]
)