mirror of
https://github.com/metosin/reitit.git
synced 2026-01-04 07:28:24 +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]))
|
||||
|
||||
(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
|
||||
|
|
|
|||
Loading…
Reference in a new issue