chore(SimpleRouter)!: moved to unstable (unstable folder is used for utils that don't yet have a stable api or breaking changes are expected)

This commit is contained in:
2024-10-27 02:25:02 +02:00
parent 5e7de844d3
commit eb041fd18c
3 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package SimpleRouter
import "net/http"
type Middleware func(http.Handler) http.Handler
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
}