Skip to content

Commit

Permalink
Make DocBlueprintMixin.register_doc_blueprint private
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Sep 25, 2018
1 parent f7acee9 commit 24a2eeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flask_rest_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def init_app(self, app, *, spec_kwargs=None):
},
)
# Initialize blueprint serving spec
self.register_doc_blueprint()
self._register_doc_blueprint()

# Can't register a handler for HTTPException, so let's register
# default handler for each code explicitly.
Expand Down
2 changes: 1 addition & 1 deletion flask_rest_api/spec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _add_leading_slash(string):
class DocBlueprintMixin:
"""Extend Api to serve the spec in a dedicated blueprint."""

def register_doc_blueprint(self):
def _register_doc_blueprint(self):
"""Register a blueprint in the application to expose the spec"""
# Add routes to json spec file and spec UI (ReDoc)
api_url = self._app.config.get('OPENAPI_URL_PREFIX', None)
Expand Down

0 comments on commit 24a2eeb

Please sign in to comment.