Implement network page

This commit is contained in:
2022-07-26 22:15:30 +01:00
parent c993bb9c6e
commit df049f822c
13 changed files with 304 additions and 15 deletions

View File

@@ -17,3 +17,30 @@ def get_irc_networks():
if not networks:
return {}
return networks
def get_irc_network(net):
url = f"irc/network/{net}"
payload = {}
network = threshold_request(url, payload)
if not network:
return {}
return network
def get_irc_relays(net):
url = f"irc/network/{net}/relays"
payload = {}
relays = threshold_request(url, payload)
if not relays:
return []
return relays
def get_irc_channels(net):
url = f"irc/network/{net}/channels"
payload = {}
channels = threshold_request(url, payload)
if not channels:
return []
return channels