This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-20
Channels
- # babashka (36)
- # beginners (26)
- # calva (1)
- # clj-kondo (10)
- # clojure (94)
- # clojure-europe (7)
- # clojure-uk (16)
- # clojurescript (5)
- # conjure (6)
- # data-science (8)
- # datomic (24)
- # events (1)
- # fulcro (11)
- # funcool (1)
- # graalvm (6)
- # malli (18)
- # nrepl (5)
- # off-topic (13)
- # parinfer (3)
- # reagent (3)
- # reitit (6)
- # shadow-cljs (14)
Hello Clojurians, I am trying to learn how to get data from server when the home page is loaded. I am following the https://github.com/metosin/reitit/tree/master/examples/frontend, but it does not seem to indicate on how to request the data from the server, for example from GET /mydata
route, which will return a json. Is there a function I should look up?
I believe you can use the Google Closure Library XHRIO https://developers.google.com/closure/library/docs/xhrio
Hmm, so it is a whole external lib, not part of reitit, interesting.
I believe reitit is just for routing. For doing http you are going to need other solutions.
3