add wsgi/gunicorn
This commit is contained in:
@@ -10,7 +10,8 @@ def index():
|
|||||||
|
|
||||||
@app.route('/', methods=['POST'])
|
@app.route('/', methods=['POST'])
|
||||||
def index_post():
|
def index_post():
|
||||||
input_message = request.form['message'] + '\n'
|
input_message = request.form['message']
|
||||||
|
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
with open(app.config.get("MESSAGE_FILE"), 'w') as f:
|
with open(app.config.get("MESSAGE_FILE"), 'w') as f:
|
||||||
f.write(str(input_message))
|
f.write(str(input_message))
|
||||||
|
|||||||
Reference in New Issue
Block a user