Skip to content

Commit

Permalink
fix: routing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Jun 11, 2024
1 parent 507dd5d commit 0a95079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/router_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewRouterGroups(app *gin.Engine) (groups *RouterGroups) {
func RegisterController[T any](group *gin.RouterGroup, basePath string, ctr *BaseControllerV2[T]) {
actionPaths := make(map[string]bool)
for _, action := range ctr.actions {
group.Handle(action.Method, action.Path, action.HandlerFunc)
group.Handle(action.Method, basePath+action.Path, action.HandlerFunc)
path := basePath + action.Path
key := action.Method + " - " + path
actionPaths[key] = true
Expand Down

0 comments on commit 0a95079

Please sign in to comment.