Skip to content
Snippets Groups Projects
Commit 55889b58 authored by Ferenc Schulcz's avatar Ferenc Schulcz
Browse files

Fix 500 when endpoint does not exist

parent 47f11e06
No related branches found
No related tags found
No related merge requests found
...@@ -303,9 +303,9 @@ def get_public_endpoint(servicename: str, method: str): ...@@ -303,9 +303,9 @@ def get_public_endpoint(servicename: str, method: str):
def get_authorized_endpoint(servicename: str, method: str): def get_authorized_endpoint(servicename: str, method: str):
if not method in authorized_service_endpoints: if not method in authorized_service_endpoints:
return None return None, None
if not servicename in authorized_service_endpoints[method]: if not servicename in authorized_service_endpoints[method]:
return None return None, None
return authorized_service_endpoints[method][servicename] return authorized_service_endpoints[method][servicename]
@ app.route('/<servicename>', methods=['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH']) @ app.route('/<servicename>', methods=['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment