Closed ao-david closed 1 week ago
This change implements fiber to allow us to more easily share code with openfish.
I am not sure if implementing the service middleware is the best way of handling the service global, since this would require calling
svc := ctx.Locals("service").(*service)
in every handler which needs the service struct. Since the svc struct is already global, we could revert to calling it from the global context.
closes #366
This change implements fiber to allow us to more easily share code with openfish.
I am not sure if implementing the service middleware is the best way of handling the service global, since this would require calling
in every handler which needs the service struct. Since the svc struct is already global, we could revert to calling it from the global context.
closes #366