Fork me on GitHub
#reitit
<
2021-04-25
>
Zaymon07:04:47

What’s the recommended way of getting dependencies into reitit handlers (when the deps are managed with Mount)

dharrigan07:04:57

I have a small example here (which I'm currently updating)....

dharrigan07:04:31

a major rewrite is underway (should be done today)

dharrigan07:04:42

but notice that I pass along the app-config into the handler

dharrigan07:04:54

I use juxt clip, rather than mount, but the concept is the same

Zaymon07:04:02

Nice. I guess I will just pass things all the way down.

dharrigan07:04:06

app-config is a map containing all my deps, like database connection

3