浏览代码

Use http_method params instead of hard-coded value for add_view

Guénaël Muller 7 年前
父节点
当前提交
cbf738d6dc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hapic/ext/pyramid/context.py

+ 1 - 1
hapic/ext/pyramid/context.py 查看文件

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(