Update routes.py

This commit is contained in:
Maxim 2020-01-12 13:31:57 -06:00 committed by GitHub
parent 28ea42b48f
commit 56d560af3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -16,10 +16,7 @@ def root():
if request.method == 'GET': if request.method == 'GET':
return render_template('index.html', return render_template('index.html',
title=':::APP TITLE:::') title=':::APP TITLE:::')
elif request.method == 'POST': elif:
return render_template('error.html', return render_template('error.html',
title='Error!', title='Error!',
message='Must use GET request type...') message='Must use GET request type...')
else:
msg = "Must use GET/POST request type..."
return msgHandler.createMessageJSON("alert-danger", msg)