Przeglądaj źródła

Use http_method params instead of hard-coded value for add_view

Guénaël Muller 7 lat temu
rodzic
commit
cbf738d6dc
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      hapic/ext/pyramid/context.py

+ 1 - 1
hapic/ext/pyramid/context.py Wyświetl plik

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(