yada

lwhorton 2018-12-08T22:26:23.007600Z

i have a desire to implement an interceptor that attaches a datomic db onto the request context before being handled in the methods/*/response part of the resource. is there a way to globally modify the yada interceptor chain for all resources? or do i have to just write some helper fns to decorate a resource definition with said interceptor?

dominicm 2018-12-08T23:07:16.008200Z

We postwalk our bidi structure to do that

lwhorton 2018-12-08T23:07:44.008600Z

so after (y/handler (y/resource ...)) you make the modifications?

dominicm 2018-12-08T23:08:28.009700Z

We don't call handler on each resource, we call it on the bidi structure

lwhorton 2018-12-08T23:10:12.009900Z

:thumbsup: