mirror of
https://github.com/go-gitea/gitea
synced 2025-07-14 22:47:21 +00:00
Add option to enable or disable swagger endpoints (#3502)
This commit is contained in:
committed by
Lauris BH
parent
4c9d9c221a
commit
b104ab3ca1
@ -515,9 +515,11 @@ var (
|
||||
|
||||
// API settings
|
||||
API = struct {
|
||||
MaxResponseItems int
|
||||
EnableSwaggerEndpoint bool
|
||||
MaxResponseItems int
|
||||
}{
|
||||
MaxResponseItems: 50,
|
||||
EnableSwaggerEndpoint: true,
|
||||
MaxResponseItems: 50,
|
||||
}
|
||||
|
||||
// I18n settings
|
||||
|
Reference in New Issue
Block a user