mirror of
https://github.com/metosin/reitit.git
synced 2025-12-24 19:08:24 +00:00
.
This commit is contained in:
parent
406386e0f6
commit
3c2c1e47b2
1 changed files with 5 additions and 3 deletions
|
|
@ -3,6 +3,7 @@
|
|||
[reitit.perf-utils :refer :all]
|
||||
[ring.util.codec]
|
||||
[reitit.impl]
|
||||
[clojure.edn :as edn]
|
||||
[reitit.ring :as ring]
|
||||
[reitit.core :as r])
|
||||
(:import (reitit SegmentTrie)))
|
||||
|
|
@ -108,11 +109,12 @@
|
|||
(r/match-by-path router "/user/1234/profile/compact")))
|
||||
|
||||
(comment
|
||||
(read-string
|
||||
(edn/read-string
|
||||
(str
|
||||
(.matcher
|
||||
(doto (SegmentTrie.)
|
||||
(.add "/user" 1)
|
||||
(.add "/user/id" 2)
|
||||
(.add "/user/id/permissions2" nil))))))
|
||||
(.add "/user/:id" 2)
|
||||
(.add "/user/:id/orders" 3)
|
||||
(.add "/user/id/permissions" 4))))))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue