mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 17:01:11 +00:00
refactor: remove commented-out code
This commit is contained in:
parent
11f47527f1
commit
bbaf4b27f7
1 changed files with 0 additions and 2 deletions
|
|
@ -90,14 +90,12 @@
|
||||||
:x-id ids}))
|
:x-id ids}))
|
||||||
accept-route (fn [route]
|
accept-route (fn [route]
|
||||||
(-> route second :openapi :id (or ::default) (trie/into-set) (set/intersection ids) seq))
|
(-> route second :openapi :id (or ::default) (trie/into-set) (set/intersection ids) seq))
|
||||||
;base-openapi-spec {:responses ^:displace {:default {:description ""}}}
|
|
||||||
transform-endpoint (fn [[method {{:keys [coercion no-doc openapi] :as data} :data
|
transform-endpoint (fn [[method {{:keys [coercion no-doc openapi] :as data} :data
|
||||||
middleware :middleware
|
middleware :middleware
|
||||||
interceptors :interceptors}]]
|
interceptors :interceptors}]]
|
||||||
(if (and data (not no-doc))
|
(if (and data (not no-doc))
|
||||||
[method
|
[method
|
||||||
(meta-merge
|
(meta-merge
|
||||||
#_base-openapi-spec
|
|
||||||
(apply meta-merge (keep (comp :openapi :data) middleware))
|
(apply meta-merge (keep (comp :openapi :data) middleware))
|
||||||
(apply meta-merge (keep (comp :openapi :data) interceptors))
|
(apply meta-merge (keep (comp :openapi :data) interceptors))
|
||||||
(if coercion
|
(if coercion
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue