Skip to content

Commit

Permalink
minor: solved full path error on logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ralvarezdev committed Feb 1, 2025
1 parent 079ffae commit cb791f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http/route/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ func NewGroup(

// Check the base router path
var fullPath string
if baseRouter.fullPath != "/" {
if baseRouter.fullPath[len(baseRouter.fullPath)-1] == '/' {
fullPath = baseRouter.fullPath + relativePath
} else {
fullPath = relativePath
fullPath = baseRouter.fullPath + "/" + relativePath
}

// Initialize the multiplexer
Expand Down

0 comments on commit cb791f3

Please sign in to comment.