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

View File

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