mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 08:21:11 +00:00
excessive nesting
This commit is contained in:
parent
05fbaa1110
commit
f0c5698a89
1 changed files with 26 additions and 26 deletions
|
|
@ -13,7 +13,7 @@
|
|||
(def app
|
||||
(ring/ring-handler
|
||||
(ring/router
|
||||
[["/api"
|
||||
["/api"
|
||||
{:swagger {:id ::math}}
|
||||
|
||||
["/swagger.json"
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
:responses {200 {:body {:total Int}}}
|
||||
:handler (fn [{{{:keys [x y]} :query} :parameters}]
|
||||
{:status 200
|
||||
:body {:total (+ x y)}})}}]]]]
|
||||
:body {:total (+ x y)}})}}]]]
|
||||
|
||||
{:data {:middleware [ring.middleware.params/wrap-params
|
||||
muuntaja.middleware/wrap-format
|
||||
|
|
|
|||
Loading…
Reference in a new issue