Finished X-Ray + fixed routing bug

This commit is contained in:
Terry Cain 2017-09-23 11:02:25 +01:00
commit 0bd3899cb3
No known key found for this signature in database
GPG key ID: 14D90844E4E9B9F3
6 changed files with 179 additions and 53 deletions

View file

@ -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,