Skip to content

Commit

Permalink
feat: fixed stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvcodes committed Jun 19, 2024
1 parent b0ec77e commit f0941ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ func (r *Router) UseRouter(Router *Router) {
routes := Router.GetCacheRoutes()
if !r.isCache {
for _, v := range routes {
r.routes[v.method].InsertNode(v.path, v.handler)
err := r.Register(v.method, v.path, v.handler); if err != nil {
panic(err)
}
}
return
}
Expand Down

0 comments on commit f0941ae

Please sign in to comment.