Fork me on GitHub
#yada
<
2018-12-08
>
lwhorton22:12:23

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?

dominicm23:12:16

We postwalk our bidi structure to do that

lwhorton23:12:44

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

dominicm23:12:28

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