diff --git a/ginext/routes.go b/ginext/routes.go index a28377f..d925d3d 100644 --- a/ginext/routes.go +++ b/ginext/routes.go @@ -68,8 +68,8 @@ func (w *GinRoutesWrapper) Any(relativePath string) *GinRouteBuilder { return &GinRouteBuilder{routes: w, methods: anyMethods, relPath: relativePath, handlers: make([]gin.HandlerFunc, 0)} } -func (w *GinRouteBuilder) Use(middleware gin.HandlerFunc) *GinRouteBuilder { - w.handlers = append(w.handlers, middleware) +func (w *GinRouteBuilder) Use(middleware ...gin.HandlerFunc) *GinRouteBuilder { + w.handlers = append(w.handlers, middleware...) return w } diff --git a/goextVersion.go b/goextVersion.go index 4115b95..e6e4fe6 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.177" +const GoextVersion = "0.0.178" -const GoextVersionTimestamp = "2023-07-18T16:08:24+0200" +const GoextVersionTimestamp = "2023-07-19T11:20:35+0200"