Skip to content

Commit

Permalink
docs: Fixes comment on OptionDefaultStatusCode
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenQuim committed Dec 9, 2024
1 parent 2be0e83 commit 19f58ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion option.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func OptionHide() func(*BaseRoute) {
}
}

// Hide hides the route from the OpenAPI spec.
// OptionDefaultStatusCode sets the default status code for the route.
func OptionDefaultStatusCode(defaultStatusCode int) func(*BaseRoute) {
return func(r *BaseRoute) {
r.DefaultStatusCode = defaultStatusCode
Expand Down
1 change: 1 addition & 0 deletions option/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,5 @@ var RequestContentType = fuego.OptionRequestContentType
// Hide hides the route from the OpenAPI spec.
var Hide = fuego.OptionHide

// DefaultStatusCode sets the default status code for the route.
var DefaultStatusCode = fuego.OptionDefaultStatusCode

0 comments on commit 19f58ef

Please sign in to comment.