@app.route('/filesave', methods=['POST'])
def filesave():
    theFile = open(request.get_data(as_text=True).split(', ')[1], 'w+')
    theFile.write(request.get_data(as_text=True).split(', ')[0])
    return 'OK'
@app.route('/filesave', methods=['POST'])
def filesave():
    theFile = open(request.get_data(as_text=True).split(', ')[1], 'w+')
    theFile.write(request.get_data(as_text=True).split(', ')[0])
    return 'OK'