This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-14
Channels
- # announcements (10)
- # babashka (14)
- # beginners (51)
- # calva (2)
- # cider (28)
- # cljs-dev (1)
- # cljsrn (3)
- # clojure (185)
- # clojure-dev (15)
- # clojure-europe (6)
- # clojure-italy (2)
- # clojure-nl (6)
- # clojure-uk (45)
- # clojurescript (4)
- # conjure (12)
- # datomic (37)
- # duct (37)
- # figwheel-main (15)
- # helix (23)
- # interceptors (1)
- # jobs (1)
- # jobs-discuss (11)
- # jvm (5)
- # luminus (3)
- # malli (15)
- # off-topic (69)
- # pathom (8)
- # pedestal (2)
- # re-frame (7)
- # reagent (58)
- # reitit (33)
- # remote-jobs (1)
- # rum (14)
- # sci (7)
- # shadow-cljs (15)
- # spacemacs (9)
- # testing (19)
- # timbre (3)
- # tools-deps (14)
Does anyone know how to make an endpoint in Luminus that an odt can be downloaded from? I keep getting a corrupted file at the end of it.
["/download/odt"
{:get {:summary "downloads an odt file"
:swagger {:produces ["application/vnd.oasis.opendocument.text"]}
:handler (fn [_]
{:status 200
:headers {"Content-Type" "application/vnd.oasis.opendocument.text"}
:body (-> "docs/file.odt"
(io/resource)
(io/input-stream))})}}]
❤️ 3