fix api_index() accessing wrong fields

This commit is contained in:
Luna 2020-06-26 22:30:41 -03:00
parent 64498ba3f2
commit c1f29d145e
1 changed files with 1 additions and 1 deletions

2
run.py
View File

@ -295,7 +295,7 @@ async def api_index(app_):
method = method.strip()
to_find[(path, method)] = name
for rule in app_.url_map.rules:
for rule in app_.url_map._rules:
path = rule.rule
# convert the path to the discord_endpoints file's style