create a new function that adds a middleware to the router.
could be something like
router.Before(someMiddlewareFunc)
router.After(someMiddlewareFunc)
probably each route should have a way to add a before/after middleware to it.
router.Get("/settings", HandlerFunc, [authMiddleware], [LogMiddleware])
or
router.Get("/settings", HandlerFunc).Before([authMiddleware]).After([LogMiddleware])
create a new function that adds a middleware to the router.
could be something like
probably each route should have a way to add a before/after middleware to it.
or