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

update sams_app.py to pass test_sams_app.py and fix issue #21

parent 6b33539b
No related branches found
No related tags found
1 merge request!16Resolve "Unterstützung von anderen HTTP-Methoden als GET innerhalb einer APP"
Pipeline #
...@@ -47,7 +47,8 @@ class SAMSApp: ...@@ -47,7 +47,8 @@ class SAMSApp:
view_func = SAMSApp._get_attr(self.module, view['function']) view_func = SAMSApp._get_attr(self.module, view['function'])
self.__blueprint.add_url_rule( self.__blueprint.add_url_rule(
rule = self._generate_url(urlPart = view.get('url')), endpoint = endpoint, rule = self._generate_url(urlPart = view.get('url')), endpoint = endpoint,
view_func = view_func) view_func = view_func,
methods = view.get('methods', ['GET', 'HEAD', 'OPTIONS']))
def __add_proxy_urls(self): def __add_proxy_urls(self):
i = 0 i = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment