load conversation from API instead of FakeData
This commit is contained in:
@@ -93,6 +93,8 @@ def get_sms_messages_by_local_phone_number():
|
||||
return make_response(jsonify(msg=msg_403_not_primary), 403)
|
||||
|
||||
local_phone_number = request.args.get("local_phone_number", None)
|
||||
# TODO set up access logging
|
||||
#print(f"/api/v1/sms-messages - local_phone_number='{local_phone_number}'")
|
||||
return make_response(jsonify([n.to_dict() for n in db.get_sms_messages_by_local_phone_number(cur, local_phone_number)]), 200)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user