-
-
Notifications
You must be signed in to change notification settings - Fork 248
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
I have a huma group like:
teamsGroup := huma.NewGroup(api, "/teams")
teamsGroup.UseModifier(func(op *huma.Operation, next func(*huma.Operation)) {
op.Tags = []string{"Teams"}
next(op)
})
teamHandlers := teams_handler.NewHandlerGroup(srvImpl)
huma.Register(
teamsGroup,
huma.Operation{
OperationID: "list-teams",
Summary: "List Teams",
Description: "List all teams the current user is a member of",
Path: "/",
Method: http.MethodGet,
},
teamHandlers.ListTeams,
)This generates a route like /teams/, but I would prefer it to generate the route /teams
Is this possible with any path syntax? When path is blank there is a panic at startup.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested