Fork me on GitHub
#reitit
<
2021-07-08
>
worlds-endless19:07:39

How do I make a response to return just a single string, not in a list or map?

worlds-endless20:07:25

That is, I need a request to somewhere like /status? and want a response like "activated"

delaguardo07:07:41

(constantly {:status 200 :body "activated"}) use something like that as a handler

delaguardo07:07:55

Might require adding :headers {:content-type "text/plain"}

worlds-endless13:07:26

Thanks. I thought it might be something like that, manually defining the response map.

worlds-endless20:07:14

preferably with no destructuring needed on the front