Add a 500 error page and make it automatically display if there is a 500 error as a result of an API call

This commit is contained in:
Joseph Schorr 2014-03-10 17:01:36 -04:00
parent 52d2229482
commit 9ca41dec95
6 changed files with 275 additions and 0 deletions

View file

@ -22,6 +22,7 @@ web = Blueprint('web', __name__)
STATUS_TAGS = app.config['STATUS_TAGS']
@web.route('/', methods=['GET'], defaults={'path': ''})
@web.route('/organization/<path:path>', methods=['GET'])
@no_cache
@ -29,6 +30,11 @@ def index(path):
return render_page_template('index.html')
@web.route('/500', methods=['GET'])
def internal_error_display():
return render_page_template('500.html')
@web.route('/snapshot', methods=['GET'])
@web.route('/snapshot/', methods=['GET'])
@web.route('/snapshot/<path:path>', methods=['GET'])