@app.route('/api/get_history', methods=['GET', 'POST'])
def get_history():
    content = request.get_json(force=True)
    insert_history_to_file(content, HISTORY_PATH)
    return jsonify(content)
@app.route('/api/get_history', methods=['GET', 'POST'])
def get_history():
    content = request.get_json(force=True)
    insert_history_to_file(content, HISTORY_PATH)
    return jsonify(content)