fix(SimpleRouter): global middlewares

This commit is contained in:
2025-01-22 01:03:31 +01:00
parent 46a47e7cd5
commit 3d413a8605
3 changed files with 27 additions and 13 deletions

View File

@@ -8,5 +8,5 @@ type RouteGroup struct {
mux *http.ServeMux // A ponter to the underlying ServeMux, this allows us to call ListenAndServe on any instance
basePath string // The current path we are defining handlers on / appending to
middlewares []Middleware // Stack of middlewares that will be applied on a handler in order
global_middlewares []Middleware
global_middlewares *[]Middleware
}