Skip to content

Commit

Permalink
annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaxxl committed Feb 11, 2023
2 parents 53bd34c + d20d158 commit 907e99b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Expand Up @@ -16,7 +16,6 @@ packaging>=23.0
pyproject-hooks>=1.0.0
pytz>=2022.7.1
PyYAML>=6.0
safrs>=3.0.0
six>=1.16.0
SQLAlchemy>=2.0.3
tomli>=2.0.1
Expand Down
3 changes: 2 additions & 1 deletion safrs/safrs_api.py
Expand Up @@ -67,7 +67,8 @@ def __init__(

self._custom_swagger = kwargs.pop("custom_swagger", {})
kwargs["default_mediatype"] = "application/vnd.api+json"
safrs.SAFRS(app, prefix=prefix, json_encoder=json_encoder, swaggerui_blueprint=swaggerui_blueprint, **kwargs)
app_db = kwargs.pop("app_db", None)
safrs.SAFRS(app, app_db= app_db, prefix=prefix, json_encoder=json_encoder, swaggerui_blueprint=swaggerui_blueprint, **kwargs)
# the host shown in the swagger ui
# this host may be different from the hostname of the server and
# sometimes we don't want to show the port (eg when proxied)
Expand Down

0 comments on commit 907e99b

Please sign in to comment.