feat: add paused state path to api

This commit is contained in:
Axel-CH
2025-03-21 16:58:23 -04:00
parent db57f83922
commit f46c8cdc4a

View File

@@ -364,6 +364,11 @@ def start(rpc: RPC = Depends(get_rpc)):
return rpc._rpc_start() return rpc._rpc_start()
@router.post("/pause", response_model=StatusMsg, tags=["botcontrol"])
def pause(rpc: RPC = Depends(get_rpc)):
return rpc._rpc_pause()
@router.post("/stop", response_model=StatusMsg, tags=["botcontrol"]) @router.post("/stop", response_model=StatusMsg, tags=["botcontrol"])
def stop(rpc: RPC = Depends(get_rpc)): def stop(rpc: RPC = Depends(get_rpc)):
return rpc._rpc_stop() return rpc._rpc_stop()