Implement editing networks

This commit is contained in:
2022-07-27 08:58:57 +01:00
parent e3f4c72ce2
commit da235fedd6
3 changed files with 64 additions and 7 deletions

View File

@@ -28,6 +28,13 @@ def get_irc_network(net):
return network
def edit_irc_network(net, data):
url = f"irc/network/{net}/edit"
payload = dict(data)
network = threshold_request(url, payload)
return network
def get_irc_relays(net):
url = f"irc/network/{net}/relays"
payload = {}