From c1f29d145e07180b45957bdce0e8cf7e24d65c5a Mon Sep 17 00:00:00 2001 From: Luna Date: Fri, 26 Jun 2020 22:30:41 -0300 Subject: [PATCH] fix api_index() accessing wrong fields --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 75cc031..0ecc74f 100644 --- a/run.py +++ b/run.py @@ -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