add routes to create user

+ route to delete user
+ add admin_required decorator
This commit is contained in:
mungai-njoroge
2024-04-27 10:05:15 +03:00
parent 1eeab2d49e
commit 0ff5661765
4 changed files with 138 additions and 19 deletions
+3 -3
View File
@@ -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()