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?
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
Yes the 2 args version is what you need.