Fork me on GitHub
#pedestal
<
2017-01-18
>
souenzzo19:01:11

There is some way to add data to ctx? ["/" hello :route-name :hello :my-data {:foo 123}]

ddeaguiar19:01:13

@souenzzo data can be assoc'd to the context via interceptors

souenzzo19:01:17

It would be interesting to have it declared alongside the route

souenzzo19:01:52

I will try (with-meta :hello {:my 'stuff})

rafaelzlisboa19:01:46

you can add interceptors to the route

rafaelzlisboa19:01:22

like… to that exact one, if need be

souenzzo19:01:20

There is a "conform-spec" interceptor. But I need to specify {:body-spec ::spec/entity}