优化结构
This commit is contained in:
@@ -97,6 +97,9 @@ func (r *Runtime) RegisterRoutes(public, private *gin.RouterGroup, engine *gin.E
|
||||
return
|
||||
}
|
||||
for _, registrar := range r.routes {
|
||||
if registrar == nil {
|
||||
continue
|
||||
}
|
||||
registrar.RegisterRoutes(public, private, engine)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user