mirror of
https://github.com/metosin/reitit.git
synced 2026-02-12 06:15:17 +00:00
FIx swagger uris
This commit is contained in:
parent
5079daa8f3
commit
213f16defa
1 changed files with 2 additions and 1 deletions
|
|
@ -68,7 +68,8 @@
|
||||||
(->> (impl/segments path)
|
(->> (impl/segments path)
|
||||||
(map #(if (impl/wild-or-catch-all-param? %)
|
(map #(if (impl/wild-or-catch-all-param? %)
|
||||||
(str "{" (subs % 1) "}") %))
|
(str "{" (subs % 1) "}") %))
|
||||||
(str/join "/")))
|
(str/join "/")
|
||||||
|
(str "/")))
|
||||||
|
|
||||||
(defn create-swagger-handler []
|
(defn create-swagger-handler []
|
||||||
"Create a ring handler to emit swagger spec. Collects all routes from router which have
|
"Create a ring handler to emit swagger spec. Collects all routes from router which have
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue