From c27bed1efddd2e472414b724824f6543e9217473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=87=E8=96=87=E5=AE=89?= Date: Mon, 9 Feb 2026 20:10:59 +0800 Subject: [PATCH] 1 --- backend/api/routes/accounts.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/api/routes/accounts.py b/backend/api/routes/accounts.py index 9213fd9..0f2ce58 100644 --- a/backend/api/routes/accounts.py +++ b/backend/api/routes/accounts.py @@ -202,7 +202,8 @@ async def get_service_status( raise HTTPException(status_code=500, detail=str(e)) -@router.post("/{account_id}/service/start") +@router.post("/{account_id}/trading/start") +@router.post("/{account_id}/service/start", include_in_schema=False) async def start_service( account_id: int, user: Dict[str, Any] = Depends(get_current_user) @@ -228,7 +229,8 @@ async def start_service( raise HTTPException(status_code=500, detail=str(e)) -@router.post("/{account_id}/service/stop") +@router.post("/{account_id}/trading/stop") +@router.post("/{account_id}/service/stop", include_in_schema=False) async def stop_service( account_id: int, user: Dict[str, Any] = Depends(get_current_user) @@ -254,7 +256,8 @@ async def stop_service( raise HTTPException(status_code=500, detail=str(e)) -@router.post("/{account_id}/service/restart") +@router.post("/{account_id}/trading/restart") +@router.post("/{account_id}/service/restart", include_in_schema=False) async def restart_service( account_id: int, user: Dict[str, Any] = Depends(get_current_user)