atoko
How to Connect to Services using context
You want the Context Api, specifically .set/.get
https://hono.dev/docs/api/context
note that the middleware runs per request, so you need to have the getDb awaited outside of the body of the middleware.
19 replies