diff --git a/sanic_openapi/openapi2/blueprint.py b/sanic_openapi/openapi2/blueprint.py index 444cb02..a914068 100644 --- a/sanic_openapi/openapi2/blueprint.py +++ b/sanic_openapi/openapi2/blueprint.py @@ -24,7 +24,7 @@ def blueprint_factory(): swagger_blueprint.static( "/", dir_path + "/index.html", strict_slashes=True ) - swagger_blueprint.static("/", dir_path) + swagger_blueprint.static("", dir_path) # Redirect "/swagger" to "/swagger/" @swagger_blueprint.route("", strict_slashes=True)