forked from kevadesu/forgejo
Add option to enable or disable swagger endpoints (#3502)
This commit is contained in:
parent
4c9d9c221a
commit
b104ab3ca1
5 changed files with 15 additions and 5 deletions
|
@ -553,6 +553,8 @@ DEFAULT_INTERVAL = 8h
|
|||
MIN_INTERVAL = 10m
|
||||
|
||||
[api]
|
||||
; Enables /api/swagger, /api/v1/swagger etc. endpoints. True or false; default is true.
|
||||
ENABLE_SWAGGER_ENDPOINT = true
|
||||
; Max number of items will response in a page
|
||||
MAX_RESPONSE_ITEMS = 50
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue