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:
parent
52d2229482
commit
9ca41dec95
6 changed files with 275 additions and 0 deletions
|
@ -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'])
|
||||
|
|
Reference in a new issue