def chat(): u = current_user() form = request.form print('!!friend chat form', form) t = Chat.add(form, u.user_id, form['userto']) return t
def add(): json = request.get_json() print('!!chat add form', json['userfrom'], json['userto'], json['title']) t = Chat.add(json, json['userfrom'], json['userto']) return t