Skip to content

Commit

Permalink
Fix OpenAPI route registration
Browse files Browse the repository at this point in the history
  • Loading branch information
rwb27 committed Jul 21, 2021
1 parent 39d91e7 commit 7ba0950
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/labthings/default_views/docs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def get(self):
)

docs_blueprint.add_url_rule("/swagger", view_func=APISpecView.as_view("swagger_json"))
docs_blueprint.add_url_rule("/openapi", view_func=APISpecView.as_view("swagger_json"))
docs_blueprint.add_url_rule("/swagger.yaml", view_func=APISpecYAMLView.as_view("swagger_yaml"))
docs_blueprint.add_url_rule("/openapi.yaml", view_func=APISpecYAMLView.as_view("swagger_yaml"))
docs_blueprint.add_url_rule("/openapi", endpoint="swagger_json")
docs_blueprint.add_url_rule("/openapi.json", endpoint="swagger_json")
docs_blueprint.add_url_rule("/openapi.yaml", view_func=APISpecYAMLView.as_view("openapi_yaml"))
docs_blueprint.add_url_rule(
"/swagger-ui", view_func=SwaggerUIView.as_view("swagger_ui")
)
Expand Down

0 comments on commit 7ba0950

Please sign in to comment.