Log endpoint should use static rpc class
This commit is contained in:
parent
18c00a4222
commit
f7c09ba63a
@ -162,8 +162,8 @@ def delete_lock_pair(payload: DeleteLockRequest, rpc: RPC = Depends(get_rpc)):
|
|||||||
|
|
||||||
|
|
||||||
@router.get('/logs', response_model=Logs, tags=['info'])
|
@router.get('/logs', response_model=Logs, tags=['info'])
|
||||||
def logs(limit: Optional[int] = None, rpc: RPC = Depends(get_rpc)):
|
def logs(limit: Optional[int] = None):
|
||||||
return rpc._rpc_get_logs(limit)
|
return RPC._rpc_get_logs(limit)
|
||||||
|
|
||||||
|
|
||||||
@router.post('/start', response_model=StatusMsg, tags=['botcontrol'])
|
@router.post('/start', response_model=StatusMsg, tags=['botcontrol'])
|
||||||
|
Loading…
Reference in New Issue
Block a user