Add 404 page

Fixes coreos-inc/quay#677
This commit is contained in:
Quentin Machu 2015-10-21 15:28:45 -04:00
parent e008f48f36
commit adb744089e
6 changed files with 136 additions and 101 deletions

View file

@ -58,6 +58,10 @@ def index(path, **kwargs):
def internal_error_display():
return render_page_template('500.html')
@web.errorhandler(404)
@web.route('/404', methods=['GET'])
def not_found_error_display(e = None):
return render_page_template('404.html')
@web.route('/organization/<path:path>', methods=['GET'])
@no_cache