Implement deleting relays

This commit is contained in:
2022-07-29 22:11:34 +01:00
parent 654c9960ba
commit 7b97c96be3
4 changed files with 51 additions and 6 deletions

View File

@@ -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