def comment_add(): r = {} c_json = request.get_json() Comment.add(c_json, r) return jsonify(r)
def comment_add(request): form = request.form() u = current_user(request) Comment.add(u.id, form) return redirect('/weibo')
def comment_add(): r = {} c_json = request.get_json() Comment.add(c_json, r) return jsonify(r)
def comment_add(request): form = request.form() u = current_user(request) Comment.add(u.id, form) return redirect('/weibo')