Skip to content
Snippets Groups Projects
Commit fa6d691e authored by Sebastian Lobinger's avatar Sebastian Lobinger
Browse files

update __add_proxy_urls in sams_app.py to pass test_app_proxy_registered

fixed issue #27
parent 70b18f24
No related branches found
No related tags found
1 merge request!19Resolve "Proxy muss alle HTTP-Methoden unterstützen"
Pipeline #
......@@ -57,11 +57,15 @@ class SAMSApp:
self.__blueprint.add_url_rule(
rule = self._generate_url(urlPart = proxy.urlRule),
endpoint = self.__blueprint.name.replace('.', '_') + '_proxy_' + str(i),
view_func = proxy.proxy)
view_func = proxy.proxy,
methods = ['GET', 'POST', 'DELETE', 'UPDATE','PATCH', 'OPTIONS', 'PUT',
'HEAD'])
self.__blueprint.add_url_rule(
rule = self._generate_url(urlPart = proxy.rootUrlRule),
endpoint = self.__blueprint.name.replace('.', '_') + '_proxy_' + str(i),
view_func = proxy.proxy)
view_func = proxy.proxy,
methods = ['GET', 'POST', 'DELETE', 'UPDATE','PATCH', 'OPTIONS', 'PUT',
'HEAD'])
i += 1
@staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment