enable disable swagger
This commit is contained in:
parent
ca242a55f8
commit
774f27d97c
@ -66,6 +66,18 @@ func License(License *openapi3.License) Option {
|
||||
}
|
||||
}
|
||||
|
||||
func RedocEnable(enable bool) Option {
|
||||
return func(swagger *Swagger) {
|
||||
swagger.RedocEnable = enable
|
||||
}
|
||||
}
|
||||
|
||||
func SwaggerEnable(enable bool) Option {
|
||||
return func(swagger *Swagger) {
|
||||
swagger.SwaggerEnable = enable
|
||||
}
|
||||
}
|
||||
|
||||
func SwaggerOptions(options map[string]interface{}) Option {
|
||||
return func(swagger *Swagger) {
|
||||
swagger.SwaggerOptions = options
|
||||
|
Loading…
Reference in New Issue
Block a user