This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-16
Channels
- # beginners (176)
- # boot (11)
- # cider (12)
- # cljs-dev (65)
- # cljsrn (54)
- # clojars (18)
- # clojure (195)
- # clojure-austin (1)
- # clojure-dev (2)
- # clojure-italy (8)
- # clojure-quebec (1)
- # clojure-russia (51)
- # clojure-serbia (3)
- # clojure-spec (24)
- # clojure-uk (28)
- # clojurescript (41)
- # cursive (14)
- # data-science (60)
- # datascript (2)
- # datomic (111)
- # emacs (6)
- # figwheel (1)
- # graphql (16)
- # hoplon (26)
- # juxt (2)
- # lein-figwheel (3)
- # lumo (12)
- # off-topic (8)
- # om (14)
- # pedestal (22)
- # perun (2)
- # proton (1)
- # re-frame (29)
- # reagent (27)
- # ring (17)
- # ring-swagger (2)
- # rum (3)
- # spacemacs (3)
- # unrepl (155)
- # untangled (28)
- # vim (4)
[metosin/compojure-api "1.2.0-alpha7"
is btw out, with more async stuff: https://github.com/metosin/compojure-api/blob/master/CHANGELOG.md#120-alpha7-1552017
Hello all, is there any way to do async response of a ring route?
(defn valid-login [usuario senha]
(ajax/ajax-request
{:uri "https://******/login?$format=JSON"
:method :post
:params {:username usuario
:password senha}
:format (ajax/url-request-format)
:response-format (ajax/json-response-format {:keywords? true})
:error-handler #(response {:resposta "OK"})
:handler #(response {:resposta "OK"})
})
)
(GET "/login" {params :params} (valid-login (params :username) (params :password)))
how to handle with that?