Skip to content

Commit

Permalink
fix: basePath
Browse files Browse the repository at this point in the history
Signed-off-by: MicroOps-cn <[email protected]>
  • Loading branch information
MicroOps-cn committed Feb 8, 2025
1 parent 50fdd63 commit c018d3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/openapi/cmd/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var rootCmd = &cobra.Command{
cancelFunc()
}()
ctx = context.WithValue(ctx, global.HTTPWebPrefixKey, "/")
ctx = context.WithValue(ctx, global.HTTPWebBasePath, "/")

handler := transport.NewHTTPHandler(ctx, logger, endpoint.Set{}, "/apidocs.json")

Expand Down

0 comments on commit c018d3d

Please sign in to comment.