Skip to content

Commit

Permalink
修复url前缀路径问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yumaojun03 committed Dec 23, 2023
1 parent 1576a17 commit a77d5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ioc/config/application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type Application struct {
}

func (a *Application) HTTPPrefix() string {
u, err := url.JoinPath(a.AppName, a.HTTP.PathPrefix)
u, err := url.JoinPath("/"+a.AppName, a.HTTP.PathPrefix)
if err != nil {
return fmt.Sprintf("/%s/%s", a.AppName, a.HTTP.PathPrefix)
}
Expand Down

0 comments on commit a77d5d2

Please sign in to comment.