mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 00:11:11 +00:00
no default method in ring
This commit is contained in:
parent
5b928d0873
commit
56203ba11d
1 changed files with 2 additions and 2 deletions
|
|
@ -129,7 +129,7 @@
|
|||
(fn
|
||||
([request]
|
||||
(if-let [match (r/match-by-path router (:uri request))]
|
||||
(let [method (:request-method request :any)
|
||||
(let [method (:request-method request)
|
||||
path-params (:path-params match)
|
||||
result (:result match)
|
||||
handler (-> result method :handler (or default-handler))
|
||||
|
|
@ -141,7 +141,7 @@
|
|||
(default-handler request)))
|
||||
([request respond raise]
|
||||
(if-let [match (r/match-by-path router (:uri request))]
|
||||
(let [method (:request-method request :any)
|
||||
(let [method (:request-method request)
|
||||
path-params (:path-params match)
|
||||
result (:result match)
|
||||
handler (-> result method :handler (or default-handler))
|
||||
|
|
|
|||
Loading…
Reference in a new issue