Skip to content

Commit ba82c1d

Browse files
committed
Doc generation: Omit the static handler endpoint
1 parent 150d8ab commit ba82c1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/make-api-docs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def endpoint_sort_key(rule):
9595

9696
for rule in sorted(app.url_map.iter_rules(), key=endpoint_sort_key):
9797
ep = rule.endpoint
98+
if ep == 'static':
99+
continue
98100
methods = [m for m in rule.methods if m not in ('OPTIONS', 'HEAD')]
99101
if not methods:
100102
app.logger.warning(f"Endpoint {ep} has no useful method, skipping!")

0 commit comments

Comments
 (0)