a
This commit is contained in:
parent
97ecf8e605
commit
0962df4112
|
|
@ -153,7 +153,8 @@ async def update_credentials(
|
|||
|
||||
# --- Service Management ---
|
||||
|
||||
@router.get("/{account_id}/service/status")
|
||||
@router.get("/{account_id}/trading/status")
|
||||
@router.get("/{account_id}/service/status", include_in_schema=False) # 兼容旧路由
|
||||
async def get_service_status(account_id: int, user: Dict[str, Any] = Depends(require_account_access)):
|
||||
"""获取该账号关联的交易服务状态"""
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
"""
|
||||
配置管理API
|
||||
"""
|
||||
from fastapi import APIRouter, HTTPException, Header, Depends
|
||||
from fastapi import APIRouter, HTTPException, Header, Depends, Query
|
||||
from api.models.config import ConfigItem, ConfigUpdate
|
||||
import sys
|
||||
from pathlib import Path
|
||||
import logging
|
||||
from typing import Dict, Any
|
||||
from typing import Dict, Any, Optional
|
||||
|
||||
# 添加项目根目录到路径
|
||||
project_root = Path(__file__).parent.parent.parent.parent
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user