better names

This commit is contained in:
Tommi Reiman 2018-07-22 16:26:03 +03:00
parent 8d4bb4d616
commit 1eef610577

View file

@ -7,7 +7,7 @@
(s/def ::spec (s/keys :opt-un [::muuntaja]))
(def format-middleware
{:name ::formats
{:name ::format
:spec ::spec
:compile (fn [{:keys [muuntaja]} _]
(if muuntaja
@ -16,14 +16,14 @@
:wrap #(muuntaja.middleware/wrap-format % muuntaja)}))})
(def format-negotiate-middleware
{:name ::formats
{:name ::format-negotiate
:spec ::spec
:compile (fn [{:keys [muuntaja]} _]
(if muuntaja
{:wrap #(muuntaja.middleware/wrap-format-negotiate % muuntaja)}))})
(def format-request-middleware
{:name ::formats
{:name ::format-request
:spec ::spec
:compile (fn [{:keys [muuntaja]} _]
(if muuntaja
@ -31,7 +31,7 @@
:wrap #(muuntaja.middleware/wrap-format-request % muuntaja)}))})
(def format-response-middleware
{:name ::formats
{:name ::format-response
:spec ::spec
:compile (fn [{:keys [muuntaja]} _]
(if muuntaja