This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-15
Channels
- # announcements (3)
- # architecture (1)
- # babashka (52)
- # beginners (228)
- # calva (1)
- # chlorine-clover (31)
- # cider (9)
- # clj-kondo (16)
- # cljs-dev (25)
- # cljsrn (21)
- # clojure (116)
- # clojure-argentina (8)
- # clojure-europe (18)
- # clojure-france (17)
- # clojure-germany (1)
- # clojure-nl (5)
- # clojure-spec (49)
- # clojure-uk (63)
- # clojurescript (59)
- # community-development (14)
- # conjure (89)
- # core-matrix (1)
- # cursive (18)
- # data-science (1)
- # datomic (27)
- # exercism (4)
- # figwheel-main (5)
- # fulcro (38)
- # ghostwheel (8)
- # graalvm (5)
- # hoplon (2)
- # jobs-discuss (17)
- # juxt (1)
- # lambdaisland (5)
- # luminus (1)
- # lumo (9)
- # malli (7)
- # off-topic (32)
- # planck (24)
- # re-frame (14)
- # reagent (14)
- # reitit (14)
- # rum (23)
- # shadow-cljs (80)
- # spacemacs (2)
- # sql (6)
- # unrepl (1)
- # xtdb (2)
Anybody here use reitit in conjunction with shadow-cljs having issues with hot reloading? I’m struggling a bit
(defn ^:dev/after-load start [] (routes/init!) (r/render [app/main] (.getElementById js/document "app")))
where do you get routes from?
what ns?
Ah, it worked ! Thanks
I’m guessing user error. I can’t get the hot reloading to work properly
Anyone have examples are coercing an xml request with reitit?
How do you specify a header with reitit swagger? For example, a bearer token header.
using security
and securityDefinitions
keywords: https://swagger.io/docs/specification/2-0/authentication/
you can put it on arbitrary route like this:
["/swagger.json"
{:get {:no-doc true
:swagger {:info {:title "App"}
:consumes content-types
:produces accept-types
:security [{:bearer []}]
:securityDefinitions {:bearer {:type "apiKey"
:in "header"
:name "Authorization"}}}
:handler (swagger/create-swagger-handler)}}]
Cool, thanks!
Hi, I would to know how Reitit handle keywordize :form-params
values ?
Currently I have a string keyword when posting a form.