Bläddra i källkod

Use http_method params instead of default

Guénaël Muller 6 år sedan
förälder
incheckning
42f7d6acd0
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      hapic/ext/flask/context.py

+ 1 - 0
hapic/ext/flask/context.py Visa fil

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