@app.route("/<string:value>", methods=['GET'])
# Create a Python file object using open() and the with statement
with open("shared-file.txt", 'w') as f:
file = open("shared-file.txt", "r")
response = make_response(send_file("shared-file.txt", attachment_filename="shared-file.txt"))
response.headers.set("Content-Type", "text/html; charset=utf-8")
response.headers.set("Content-Disposition", "attachment; filename=shared-file.txt")