Skip to content

Commit 0b8d1a4

Browse files
committed
Include more information on jwt optional.
1 parent 48a079f commit 0b8d1a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

section11/resources/item.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,7 @@ def get(self):
8080
items = [item.json() for item in ItemModel.find_all()]
8181
if user_id:
8282
return {'items': items}, 200
83-
return {'items': [item['name'] for item in items]}, 200
83+
return {
84+
'items': [item['name'] for item in items],
85+
'message': 'More data available if you log in.'
86+
}, 200

0 commit comments

Comments
 (0)