Fork me on GitHub
#liberator
<
2017-06-27
>
pandeiro17:06:05

Is there a way to include both a :session and :body into a ring response created by liberator, without having to create the representation (ie, JSON, EDN, etc) of the body manually?

pandeiro17:06:25

Ah OK, so I think ring-response is multi-arity, and in the 2-arity version, the first argument is the body that will be transformed to the appropriate representation

ordnungswidrig17:06:43

Yes the 2 args version is what you need.