Skip to content

Commit

Permalink
global: fix typo and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Aug 7, 2023
1 parent e4df1d8 commit 5125ba0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Core

Protecting Views
----------------
.. autofunction:: flask_security.decorators.auth_required

.. autofunction:: flask_security.decorators.roles_required

.. autofunction:: flask_security.decorators.roles_accepted
Expand Down
2 changes: 1 addition & 1 deletion flask_security/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _get_unauthorized_view():

def auth_required(*auth_methods):
"""
Decorator that protects enpoints through multiple mechanisms
Decorator that protects endpoints through multiple mechanisms
Example::
@app.route('/dashboard')
Expand Down

0 comments on commit 5125ba0

Please sign in to comment.