Skip to content

Commit 892c9f0

Browse files
committed
fix RouterGroup.USE
1 parent 6b8ff6f commit 892c9f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router_group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (r *RouterGroup) POST(route string, handle any) { r.r.POST(r.p+route, ha
2626
func (r *RouterGroup) PUT(route string, handle any) { r.r.PUT(r.p+route, handle) }
2727
func (r *RouterGroup) PATCH(route string, handle any) { r.r.PATCH(r.p+route, handle) }
2828
func (r *RouterGroup) DELETE(route string, handle any) { r.r.DELETE(r.p+route, handle) }
29-
func (r *RouterGroup) Use(args ...any) Group { return r.Use(args...) }
29+
func (r *RouterGroup) Use(args ...any) Group { return r.r.Use(args...) }
3030
func (r *RouterGroup) Group(route string) Group { return &RouterGroup{r.p + route, r.r} }
3131
func (r *RouterGroup) Handle(method string, route string, handle any) {
3232
r.r.Handle(method, r.p+route, handle)

0 commit comments

Comments
 (0)