Browse Source

Merge pull request #39 from inkhey/fix/http_method_flask_add_view

Damien Accorsi 6 years ago
parent
commit
b9ec9ae591
No account linked to committer's email
1 changed files with 1 additions and 0 deletions
  1. 1 0
      hapic/ext/flask/context.py

+ 1 - 0
hapic/ext/flask/context.py View File

133
         view_func: typing.Callable[..., typing.Any],
133
         view_func: typing.Callable[..., typing.Any],
134
     ) -> None:
134
     ) -> None:
135
         self.app.add_url_rule(
135
         self.app.add_url_rule(
136
+            methods=[http_method],
136
             rule=route,
137
             rule=route,
137
             view_func=view_func,
138
             view_func=view_func,
138
         )
139
         )