summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inventory/api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/inventory/api.py b/inventory/api.py
index fa09a68..ef05e33 100644
--- a/inventory/api.py
+++ b/inventory/api.py
@@ -1,4 +1,5 @@
import datetime
+import functools
import time
from bson import ObjectId
@@ -49,6 +50,7 @@ def on_validation_error(e):
def auth_required(f):
+ @functools.wraps(f)
def wrapper(*args, **kwargs):
authorization = request.headers.get('Authorization')
if not authorization: