Selaa lähdekoodia

Use http_method params instead of default

Guénaël Muller 7 vuotta sitten
vanhempi
commit
42f7d6acd0
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      hapic/ext/flask/context.py

+ 1 - 0
hapic/ext/flask/context.py Näytä tiedosto

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
         )