Commit 834b86d05bf7824a2a0ce927878f17c6a28079f9

Authored by Василь Свідрик
1 parent bc80f59b26
Exists in master

add jwt decorator

Showing 2 changed files with 1 additions and 0 deletions Side-by-side Diff

k2/__pycache__/k2rout.cpython-310.pyc
No preview for this file type
... ... @@ -470,6 +470,7 @@
470 470  
471 471  
472 472 @components_bp.route('/api/main-menu/')
  473 +@jwt_required()
473 474 def get_admin_menu():
474 475 current_user = get_jwt_identity()
475 476 role_id = current_user['user_role']