1
0
Fork 0

lint(api): sort methods in introspection

This commit is contained in:
Sean Sube 2023-01-06 11:00:20 -06:00
parent 561fcb4d10
commit 6d839eaa29
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ def index():
'name': 'onnx-web',
'routes': [{
'path': url_from_rule(rule),
'methods': list(rule.methods)
'methods': list(rule.methods).sort()
} for rule in app.url_map.iter_rules()]
}