Fork me on GitHub
#liberator
<
2020-06-15
adam01:06:58

I think I understand Liberator more now. It's great for data display, but it's a hassle to try fitting everything inside its resource definition

ordnungswidrig07:06:52

@somedude314 which middleware do you use for session management? With ring.middleware.session you’d need to nil the session in the ring response. You’d need to implement :handle-moved-temporarily for this and use ring-response to gain control over the ring response (fn [ctx] (ring-response {:session nill} "Document has moved")). I did not test this but ring-response is the key here. I allows to combine / merge the given response over what liberate creates for the value representation.

adam13:06:02

Got it, thanks

ordnungswidrig15:06:54

you’re welcome