def get(self): user_id = get_jwt_identity().get('id') all_notifications = Notification.get_by_userId(user_id) data = { "message": "Notifications received", "notifications": notifications_schema.dump(all_notifications) } return custom_json_response(data, 200)