Implement deleting relays
This commit is contained in:
@@ -94,3 +94,10 @@ def add_relay(net, num):
|
||||
payload = {}
|
||||
created = threshold_request(url, payload, method="PUT")
|
||||
return created
|
||||
|
||||
|
||||
def del_relay(net, num):
|
||||
url = f"irc/network/{net}/{num}"
|
||||
payload = {}
|
||||
deleted = threshold_request(url, payload, method="DELETE")
|
||||
return deleted
|
||||
|
||||
Reference in New Issue
Block a user