Fix API paths

master
Alice 6 years ago
parent ffb97bf194
commit 00f4feb04c

@ -79,7 +79,7 @@ def current_active_sessions():
@APICache(initial=lambda: [])
def get_locations():
gateways = core_api.get('/gateways/', enabled=True)
gateways = core_api.get('gateways/', enabled=True)
locations = {}
for gw in gateways.list_iter():
@ -95,7 +95,7 @@ def get_locations():
)
locations[cc]['servers'] += 1
locations[cc]['bandwidth'] += gw['bandwidth']
locations[cc]['bandwidth'] += gw['bandwidth'] or 0
locations = sorted(locations.items(), key=lambda x: x[1]['country_code'])
return locations
@ -103,7 +103,7 @@ def get_locations():
@APICache(initial=lambda: [])
def get_gateway_exit_ips():
gateways = core_api.get('/gateways/', enabled=True)
gateways = core_api.get('gateways/', enabled=True)
ipv4_list = []
ipv6_list = []

Loading…
Cancel
Save