Example #1
0
def chat():
    u = current_user()
    form = request.form
    print('!!friend chat form', form)
    t = Chat.add(form, u.user_id, form['userto'])
    return t
Example #2
0
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