Skip to content

Commit

Permalink
Resolve bug where static files not displaying for openapi2 (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
K0IN authored Aug 3, 2021
1 parent 86c8fbc commit 59c2d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic_openapi/openapi2/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 59c2d7f

Please sign in to comment.