Skip to content

Commit

Permalink
Merge pull request #361 from barklan/fix/fiber-adapter
Browse files Browse the repository at this point in the history
fix: NewWithGroup accepting fiber.Router
  • Loading branch information
danielgtaylor authored Apr 9, 2024
2 parents 6247e82 + 551edab commit fcd6d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/humafiber/humafiber.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,6 @@ func New(r *fiber.App, config huma.Config) huma.API {
return huma.NewAPI(config, &fiberAdapter{tester: r, router: r})
}

func NewWithGroup(r *fiber.App, g *fiber.Group, config huma.Config) huma.API {
func NewWithGroup(r *fiber.App, g fiber.Router, config huma.Config) huma.API {
return huma.NewAPI(config, &fiberAdapter{tester: r, router: g})
}

0 comments on commit fcd6d9c

Please sign in to comment.