File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/labthings/default_views/docs Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ def get(self):
47
47
)
48
48
49
49
docs_blueprint .add_url_rule ("/swagger" , view_func = APISpecView .as_view ("swagger_json" ))
50
- docs_blueprint .add_url_rule ("/openapi" , view_func = APISpecView . as_view ( "swagger_json" ) )
51
- docs_blueprint .add_url_rule ("/swagger.yaml " , view_func = APISpecYAMLView . as_view ( "swagger_yaml" ) )
52
- docs_blueprint .add_url_rule ("/openapi.yaml" , view_func = APISpecYAMLView .as_view ("swagger_yaml " ))
50
+ docs_blueprint .add_url_rule ("/openapi" , endpoint = "swagger_json" )
51
+ docs_blueprint .add_url_rule ("/openapi.json " , endpoint = "swagger_json" )
52
+ docs_blueprint .add_url_rule ("/openapi.yaml" , view_func = APISpecYAMLView .as_view ("openapi_yaml " ))
53
53
docs_blueprint .add_url_rule (
54
54
"/swagger-ui" , view_func = SwaggerUIView .as_view ("swagger_ui" )
55
55
)
You can’t perform that action at this time.
0 commit comments