diff --git a/app/routes.py b/app/routes.py index 44c5ed4..2e8152a 100644 --- a/app/routes.py +++ b/app/routes.py @@ -159,6 +159,14 @@ def opensearch(): ), 200, {'Content-Disposition': 'attachment; filename="opensearch.xml"'} +@app.route('/search.html', methods=['GET']) +def search_html(): + search_url = g.app_location + if search_url.endswith('/'): + search_url = search_url[:-1] + return render_template('search.html', url=search_url) + + @app.route('/autocomplete', methods=['GET', 'POST']) def autocomplete(): q = g.request_params.get('q') diff --git a/app/templates/search.html b/app/templates/search.html new file mode 100644 index 0000000..67674a1 --- /dev/null +++ b/app/templates/search.html @@ -0,0 +1,13 @@ +