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
         self.configurator.add_route(
158
         self.configurator.add_route(
159
             name=route,
159
             name=route,
160
             path=route,
160
             path=route,
161
-            request_method='GET'
161
+            request_method=http_method
162
         )
162
         )
163
 
163
 
164
         self.configurator.add_view(
164
         self.configurator.add_view(