This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-20
Channels
- # announcements (5)
- # aws (15)
- # babashka (12)
- # beginners (87)
- # calva (13)
- # cider (16)
- # clj-kondo (4)
- # clojure (22)
- # clojure-argentina (1)
- # clojure-europe (9)
- # clojure-houston (1)
- # clojure-nl (2)
- # clojure-norway (25)
- # clojure-uk (5)
- # clojurescript (12)
- # core-typed (37)
- # cursive (15)
- # datomic (40)
- # editors (8)
- # emacs (4)
- # events (1)
- # hyperfiddle (29)
- # keechma (8)
- # leiningen (6)
- # lsp (7)
- # malli (25)
- # off-topic (26)
- # pathom (10)
- # portal (3)
- # re-frame (22)
- # reitit (1)
- # releases (1)
- # ring (2)
- # shadow-cljs (18)
- # yamlscript (1)
How can I serve a static folder of images?
It's in the same level as src
, running the server outside the repl
["/api"
["/images" (ring/create-file-handler {:root "images"})]]
but trying to get /api/images/file-name
I get 404It looks like you're using Reitit? If so, that needs to be "/images/*"
. See: https://cljdoc.org/d/metosin/reitit/0.7.0-alpha7/doc/ring/static-resources#internal-routes
🙌 1
✅ 1