diff --git a/sanic_openapi/__init__.py b/sanic_openapi/__init__.py index 2bfe4e1..8106633 100644 --- a/sanic_openapi/__init__.py +++ b/sanic_openapi/__init__.py @@ -3,7 +3,7 @@ swagger_blueprint = openapi2_blueprint -__version__ = "21.3.2" +__version__ = "21.3.3" __all__ = [ "openapi2_blueprint", "swagger_blueprint", diff --git a/sanic_openapi/openapi3/blueprint.py b/sanic_openapi/openapi3/blueprint.py index 7c214f7..b119841 100644 --- a/sanic_openapi/openapi3/blueprint.py +++ b/sanic_openapi/openapi3/blueprint.py @@ -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)