Browse Source

Use http_method params instead of hard-coded value for add_view

Guénaël Muller 6 years ago
parent
commit
cbf738d6dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hapic/ext/pyramid/context.py

+ 1 - 1
hapic/ext/pyramid/context.py View File

@@ -158,7 +158,7 @@ class PyramidContext(BaseContext):
158 158
         self.configurator.add_route(
159 159
             name=route,
160 160
             path=route,
161
-            request_method='GET'
161
+            request_method=http_method
162 162
         )
163 163
 
164 164
         self.configurator.add_view(