Fork me on GitHub
#luminus
<
2019-06-22
>
jcb13:06:48

@yogthos do you mean something like - ["/thing" {:get (fn [_] (-> (response/ok {:foo :bar}) (response/header "Content-Type" "application/json"))) }]

yogthos13:06:38

right, except you don't need to set the content header by hand

yogthos13:06:47

this is handled by the content negotiation middleware

yogthos13:06:02

it checks the accept header on the request, and serializes the response accordingly

jcb13:06:35

ah, I see thank you

yogthos15:06:59

if immutant doesn't get new maintainers, I'd remove it from Luminus as an option and switch to using either http-kit or Jetty as the default