mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-03-19 06:35:28 +01:00
test
This commit is contained in:
@@ -105,11 +105,8 @@ def has_no_empty_params(rule):
|
||||
def site_map():
|
||||
links = []
|
||||
for rule in app.url_map.iter_rules():
|
||||
# Filter out rules we can't navigate to in a browser
|
||||
# and rules that require parameters
|
||||
if "GET" in rule.methods and has_no_empty_params(rule):
|
||||
url = url_for(rule.endpoint, **(rule.defaults or {}))
|
||||
links.append((url, rule.endpoint))
|
||||
url = url_for(rule.endpoint, **(rule.defaults or {}))
|
||||
links.append((url, rule.endpoint))
|
||||
# links is now a list of url, endpoint tuples
|
||||
return Markup(links)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user