1
This commit is contained in:
parent
78d1c3ac37
commit
c27bed1efd
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user