This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-23
Channels
- # announcements (10)
- # babashka (7)
- # beginners (31)
- # boot (4)
- # calva (8)
- # chlorine-clover (19)
- # cider (12)
- # clj-kondo (27)
- # cljsrn (7)
- # clojure (68)
- # clojure-colombia (2)
- # clojure-europe (47)
- # clojure-italy (16)
- # clojure-nl (4)
- # clojure-spec (13)
- # clojure-uk (39)
- # clojurescript (103)
- # code-reviews (8)
- # community-development (2)
- # conjure (38)
- # core-async (37)
- # cursive (2)
- # datascript (1)
- # datomic (31)
- # figwheel-main (22)
- # fulcro (18)
- # jobs (2)
- # jobs-discuss (6)
- # juxt (3)
- # keechma (1)
- # lambdaisland (6)
- # malli (30)
- # meander (20)
- # off-topic (29)
- # reagent (1)
- # reitit (16)
- # shadow-cljs (4)
- # tools-deps (70)
- # xtdb (19)
@dharrigan with spec:
(s/def ::datetime (st/spec {:spec ISO8601, :swagger/format "date-time"}))
with malli:
(def DateTime [:re {:swagger/format "date-time"} ISO8601])
Hello folks, I am new to reitit and I can’t make static files working, any idea what I am doing wrong ?
(def router
(rr/router
["/" {:get handler}]
["/assets/*" (rr/create-resource-handler {:path "resources/public"})]))
when I (r/match-by-path router "/assets/main.css")
with main.css
in the resources/public/
folder, nothing is found*edit : I am just stupid as fuck
(def router
(rr/router
[["/" {:get handler}]
["/assets/*" (rr/create-resource-handler)]]))
forgot the []
wrapper
Hi all 👋 How do I make a route like the following?
/users ;; GET POST
/users/:id ;; GET POST PUT DELETE
I keep getting Too many redirects
when calling GET
on the /users
route. It is defined as follows:
["/users"
["" {:get get-users
:post save-user}]
["/:id" {:get get-user
:put update-user
:delete delete-user}]]
Hm, somehow it is working after I call POST
first? :thinking_face:
Somehow I can’t replicate it anymore? Could it be that the browser was caching the status code? :thinking_face: I’ll investigate further and create an issue if necessary. Thanks @ikitommi.
👍 3