mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
add routes to create user
+ route to delete user + add admin_required decorator
This commit is contained in:
@@ -60,9 +60,9 @@ def verify_auth():
|
||||
|
||||
# if request path starts with any of the blacklisted routes, don't verify jwt
|
||||
if any(request.path.startswith(route) for route in blacklist_routes):
|
||||
print(
|
||||
"Found blacklisted route: ", request.path, "... Skipping jwt verification"
|
||||
)
|
||||
# print(
|
||||
# "Found blacklisted route: ", request.path, "... Skipping jwt verification"
|
||||
# )
|
||||
return
|
||||
|
||||
verify_jwt_in_request()
|
||||
|
||||
Reference in New Issue
Block a user