mirror of
https://github.com/metosin/reitit.git
synced 2026-02-15 23:55:15 +00:00
better names
This commit is contained in:
parent
8d4bb4d616
commit
1eef610577
1 changed files with 4 additions and 4 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
(s/def ::spec (s/keys :opt-un [::muuntaja]))
|
(s/def ::spec (s/keys :opt-un [::muuntaja]))
|
||||||
|
|
||||||
(def format-middleware
|
(def format-middleware
|
||||||
{:name ::formats
|
{:name ::format
|
||||||
:spec ::spec
|
:spec ::spec
|
||||||
:compile (fn [{:keys [muuntaja]} _]
|
:compile (fn [{:keys [muuntaja]} _]
|
||||||
(if muuntaja
|
(if muuntaja
|
||||||
|
|
@ -16,14 +16,14 @@
|
||||||
:wrap #(muuntaja.middleware/wrap-format % muuntaja)}))})
|
:wrap #(muuntaja.middleware/wrap-format % muuntaja)}))})
|
||||||
|
|
||||||
(def format-negotiate-middleware
|
(def format-negotiate-middleware
|
||||||
{:name ::formats
|
{:name ::format-negotiate
|
||||||
:spec ::spec
|
:spec ::spec
|
||||||
:compile (fn [{:keys [muuntaja]} _]
|
:compile (fn [{:keys [muuntaja]} _]
|
||||||
(if muuntaja
|
(if muuntaja
|
||||||
{:wrap #(muuntaja.middleware/wrap-format-negotiate % muuntaja)}))})
|
{:wrap #(muuntaja.middleware/wrap-format-negotiate % muuntaja)}))})
|
||||||
|
|
||||||
(def format-request-middleware
|
(def format-request-middleware
|
||||||
{:name ::formats
|
{:name ::format-request
|
||||||
:spec ::spec
|
:spec ::spec
|
||||||
:compile (fn [{:keys [muuntaja]} _]
|
:compile (fn [{:keys [muuntaja]} _]
|
||||||
(if muuntaja
|
(if muuntaja
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
:wrap #(muuntaja.middleware/wrap-format-request % muuntaja)}))})
|
:wrap #(muuntaja.middleware/wrap-format-request % muuntaja)}))})
|
||||||
|
|
||||||
(def format-response-middleware
|
(def format-response-middleware
|
||||||
{:name ::formats
|
{:name ::format-response
|
||||||
:spec ::spec
|
:spec ::spec
|
||||||
:compile (fn [{:keys [muuntaja]} _]
|
:compile (fn [{:keys [muuntaja]} _]
|
||||||
(if muuntaja
|
(if muuntaja
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue