Finished X-Ray + fixed routing bug
This commit is contained in:
parent
7ea4d8c3e6
commit
0bd3899cb3
6 changed files with 179 additions and 53 deletions
|
|
@ -139,10 +139,13 @@ def create_backend_app(service):
|
|||
else:
|
||||
endpoint = None
|
||||
|
||||
if endpoint in backend_app.view_functions:
|
||||
original_endpoint = endpoint
|
||||
index = 2
|
||||
while endpoint in backend_app.view_functions:
|
||||
# HACK: Sometimes we map the same view to multiple url_paths. Flask
|
||||
# requries us to have different names.
|
||||
endpoint += "2"
|
||||
endpoint = original_endpoint + str(index)
|
||||
index += 1
|
||||
|
||||
backend_app.add_url_rule(
|
||||
url_path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue