Spaces:
Sleeping
Sleeping
Update middleware/authUser.py
Browse files- middleware/authUser.py +1 -0
middleware/authUser.py
CHANGED
@@ -32,4 +32,5 @@ def auth_user(next_function):
|
|
32 |
print(e) # Log the error if needed
|
33 |
return jsonify({"error": "Unauthorized"}), 401
|
34 |
|
|
|
35 |
return middleware_function
|
|
|
32 |
print(e) # Log the error if needed
|
33 |
return jsonify({"error": "Unauthorized"}), 401
|
34 |
|
35 |
+
middleware_function.__name__ = next_function.__name__
|
36 |
return middleware_function
|