We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e83ecf8 commit 7638791Copy full SHA for 7638791
1 file changed
adapters/humamux/options.go
@@ -7,12 +7,15 @@ import (
7
8
type Option func(*options)
9
10
+// WithRouteCustomizer allows customizing a mux route, like adding HTTP middlewares.
11
func WithRouteCustomizer(f func(op *huma.Operation, r *mux.Route)) Option {
12
return func(o *options) {
13
o.routeCustomizer = f
14
}
15
16
17
+// options
18
+
19
func parseOptions(optionList []Option) options {
20
var optns options
21
for _, opt := range optionList {
0 commit comments