From dce7553d31dad357ebbfd5595e8b3dca00a6ae0d Mon Sep 17 00:00:00 2001 From: Efreak Date: Sat, 8 Jun 2024 14:26:14 -0700 Subject: [PATCH] move to flask.py and apply to HORDE --- horde/apis/apiv2.py | 1 - horde/flask.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/horde/apis/apiv2.py b/horde/apis/apiv2.py index 13225034..cd68a1d8 100644 --- a/horde/apis/apiv2.py +++ b/horde/apis/apiv2.py @@ -16,5 +16,4 @@ ordered=True, ) -api.config.SWAGGER_UI_DOC_EXPANSION = 'list' api.add_namespace(v2) diff --git a/horde/flask.py b/horde/flask.py index 1a8cf57f..4c209ea6 100644 --- a/horde/flask.py +++ b/horde/flask.py @@ -10,6 +10,7 @@ cache = None HORDE = Flask(__name__) +HORDE.config.SWAGGER_UI_DOC_EXPANSION = 'list' HORDE.wsgi_app = ProxyFix(HORDE.wsgi_app, x_for=1) SQLITE_MODE = os.getenv("USE_SQLITE", "0") == "1"