I'm coming from golang and am attempting to have a postgresql pool on a struct that has methods. I'm hoping to pass those into the route handler but am getting errors.
https://gist.github.com/Smithx10/ed648316e042c84963f5f97c5e4beb2f
I saw that
try router.serve_route("/", Route.init().get(struct {}, f.getUsers));
Route.init().get takes a pointer that can be used, but for now I'm learning.