mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
Update Aleph in example
This commit is contained in:
parent
15395f8239
commit
d00efb8cc6
2 changed files with 3 additions and 3 deletions
|
|
@ -2,6 +2,6 @@
|
|||
:description "Reitit Http App with Swagger"
|
||||
:dependencies [[org.clojure/clojure "1.10.0"]
|
||||
[ring/ring-jetty-adapter "1.7.1"]
|
||||
[aleph "0.4.6"]
|
||||
[aleph "0.4.7-alpha5"]
|
||||
[metosin/reitit "0.3.9"]]
|
||||
:repl-options {:init-ns example.server})
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
[reitit.http.spec :as spec]
|
||||
[spec-tools.spell :as spell]
|
||||
[ring.adapter.jetty :as jetty]
|
||||
[aleph.http :as client]
|
||||
[aleph.http :as aleph]
|
||||
[muuntaja.core :as m]
|
||||
[clojure.java.io :as io]
|
||||
[clojure.spec.alpha :as s]
|
||||
|
|
@ -71,7 +71,7 @@
|
|||
:responses {200 {:body any?}}
|
||||
:handler (fn [{{{:keys [seed results]} :query} :parameters}]
|
||||
(d/chain
|
||||
(client/get
|
||||
(aleph/get
|
||||
"https://randomuser.me/api/"
|
||||
{:query-params {:seed seed, :results results}})
|
||||
:body
|
||||
|
|
|
|||
Loading…
Reference in a new issue