auto_trade_sys/backend/api/routes/dashboard.py
薇薇安 1bfa7c18ef a
2026-01-14 11:40:50 +08:00

12 lines
347 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
仪表板API重定向到stats
"""
from fastapi import APIRouter
from api.routes.stats import get_dashboard_data
router = APIRouter()
# 使用stats模块的dashboard函数同时支持有斜杠和无斜杠
router.add_api_route("", get_dashboard_data, methods=["GET"])
router.add_api_route("/", get_dashboard_data, methods=["GET"])