mirror of
https://github.com/metosin/reitit.git
synced 2025-12-22 02:21:11 +00:00
dead code
This commit is contained in:
parent
c1ade2f45e
commit
a2063587b1
1 changed files with 0 additions and 16 deletions
|
|
@ -234,19 +234,3 @@
|
||||||
[["/a"] ["/a"]]))))
|
[["/a"] ["/a"]]))))
|
||||||
(testing "can be configured to ignore"
|
(testing "can be configured to ignore"
|
||||||
(is (not (nil? (r/router [["/a"] ["/a"]] {:conflicts (constantly nil)})))))))
|
(is (not (nil? (r/router [["/a"] ["/a"]] {:conflicts (constantly nil)})))))))
|
||||||
|
|
||||||
(require '[reitit.coercion :as coercion])
|
|
||||||
(require '[reitit.coercion.spec :as spec])
|
|
||||||
|
|
||||||
(def r
|
|
||||||
(r/router
|
|
||||||
["/user/:user-id" {:name ::user
|
|
||||||
:parameters {:path {:user-id int?}}}]
|
|
||||||
{:compile coercion/compile-request-coercers
|
|
||||||
:data {:coercion spec/coercion}}))
|
|
||||||
|
|
||||||
(def m
|
|
||||||
(r/match-by-path r "/user/123"))
|
|
||||||
|
|
||||||
(let [m (r/match-by-path r "/user/123")]
|
|
||||||
(coercion/coerce-request (:result m) {:path-params (:params m)}))
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue