@app.route("/save_feedback", methods=["POST"]) @login_required defsave_feedback(): data = json.loads(request.data) feedback = Feedback() # Because we want to dynamically grab the data and save it attributes we can merge it and it *should* create those attribs for the object. merge(data, feedback) save_feedback_to_disk(feedback) return jsonify({"success": "true"}), 200
@app.route("/get_flag") @login_required defget_flag(): if flag == "true": return"DUCTF{NOT_THE_REAL_FLAG}" else: return"Nope"