mirror of https://gitlab.com/litecord/litecord.git
fix api_index() accessing wrong fields
This commit is contained in:
parent
64498ba3f2
commit
c1f29d145e
2
run.py
2
run.py
|
|
@ -295,7 +295,7 @@ async def api_index(app_):
|
||||||
method = method.strip()
|
method = method.strip()
|
||||||
to_find[(path, method)] = name
|
to_find[(path, method)] = name
|
||||||
|
|
||||||
for rule in app_.url_map.rules:
|
for rule in app_.url_map._rules:
|
||||||
path = rule.rule
|
path = rule.rule
|
||||||
|
|
||||||
# convert the path to the discord_endpoints file's style
|
# convert the path to the discord_endpoints file's style
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue