diff --git a/endpoints/web.py b/endpoints/web.py index 9c77ef4bf..df1f775b9 100644 --- a/endpoints/web.py +++ b/endpoints/web.py @@ -83,6 +83,16 @@ def not_found_error_display(e = None): resp.status_code = 404 return resp +@web.route('/opensearch.xml') +def opensearch(): + template = render_template('opensearch.xml', + baseurl=get_app_url(), + registry_title=app.config.get('REGISTRY_TITLE', 'Quay')) + resp = make_response(template) + resp.headers['Content-Type'] = 'application/xml' + return resp + + @web.route('/organization/', methods=['GET']) @web.route('/organization//', methods=['GET']) @no_cache diff --git a/templates/base.html b/templates/base.html index 793ea0474..c0178b9b6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -131,6 +131,8 @@ b._i.push([a,e,d])};b.__SV=1.2}})(document,window.mixpanel||[]); mixpanel.init("{{ mixpanel_key }}", { track_pageview : false, debug: {{ is_debug }} }); {% endif %} + +