Skip to content

Commit

Permalink
feat: expand swagger api docs by default (#419)
Browse files Browse the repository at this point in the history
* expand api docs by default

what I really wanted was to enable deep linking support, but swagger-restx doesn't support it.
python-restx/flask-restx#518

* move to flask.py and apply to HORDE

* style: use double quotes

---------

Co-authored-by: tazlin <[email protected]>
  • Loading branch information
Efreak and tazlin authored Jun 10, 2024
1 parent 69ce1fe commit bc264b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions horde/flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bc264b8

Please sign in to comment.