Skip to content

Commit

Permalink
Resolve bug where static files not displaying (#241)
Browse files Browse the repository at this point in the history
* version bump

* Version set
  • Loading branch information
ahopkins authored Aug 2, 2021
1 parent bc0562e commit e1d2fdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sanic_openapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

swagger_blueprint = openapi2_blueprint

__version__ = "21.3.2"
__version__ = "21.3.3"
__all__ = [
"openapi2_blueprint",
"swagger_blueprint",
Expand Down
2 changes: 1 addition & 1 deletion sanic_openapi/openapi3/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def blueprint_factory():
dir_path = abspath(dir_path + "/ui")

oas3_blueprint.static("/", dir_path + "/index.html", strict_slashes=True)
oas3_blueprint.static("/", dir_path)
oas3_blueprint.static("", dir_path)

# Redirect "/swagger" to "/swagger/"
@oas3_blueprint.route("", strict_slashes=True)
Expand Down

0 comments on commit e1d2fdc

Please sign in to comment.