Because the handler is currently entirely inside the middleware, it is very difficult to fine tune it (such as enabling/disabling it), and takes a reasonably large work around when used with a library like echo or gin.
Please put the handler into a standalone function so that it can be called manually from whatever library a user chooses/ in a more flexible manner in general.
Because the handler is currently entirely inside the middleware, it is very difficult to fine tune it (such as enabling/disabling it), and takes a reasonably large work around when used with a library like echo or gin.
Please put the handler into a standalone function so that it can be called manually from whatever library a user chooses/ in a more flexible manner in general.