1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add option to enable or disable swagger endpoints (#3502)

This commit is contained in:
Piotr Orzechowski
2018-02-14 05:46:00 +01:00
committed by Lauris BH
parent 4c9d9c221a
commit b104ab3ca1
5 changed files with 15 additions and 5 deletions

View File

@@ -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