mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 08:21:11 +00:00
fix example
This commit is contained in:
parent
32fb3ca294
commit
bd7577a949
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ Here's an full example for applying coercion with Reitit, Ring and Schema:
|
||||||
:parameters {:query {:x s/Int}
|
:parameters {:query {:x s/Int}
|
||||||
:body {:y s/Int}
|
:body {:y s/Int}
|
||||||
:path {:z s/Int}}
|
:path {:z s/Int}}
|
||||||
:responses {200 {:schema {:total PositiveInt}}}
|
:responses {200 {:body {:total PositiveInt}}}
|
||||||
:handler (fn [{:keys [parameters]}]
|
:handler (fn [{:keys [parameters]}]
|
||||||
(let [total (+ (-> parameters :query :x)
|
(let [total (+ (-> parameters :query :x)
|
||||||
(-> parameters :body :y)
|
(-> parameters :body :y)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue