chttp.HandleMiddlewarefunction to create a middleware out of it.
chttp.Routestruct accepts a list of middlewares that will be executed, in order, for each request that matches the route.
pkg/app/handler.go, you can pass a list of middlewares to the
chttp.NewHandlerfunction. These middlewares will be executed on all requests handled by this handler.