From 13c355c4c45d79f84666c8306463969db804f83c Mon Sep 17 00:00:00 2001 From: Igor Rzegocki Date: Sat, 2 Oct 2021 17:00:37 +0200 Subject: healthcheck endpoint --- searx/webapp.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'searx/webapp.py') diff --git a/searx/webapp.py b/searx/webapp.py index ee558a5f7..98480e4b6 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -618,6 +618,11 @@ def index(): ) +@app.route('/healthz', methods=['GET']) +def health(): + return Response('OK', mimetype='text/plain') + + @app.route('/search', methods=['GET', 'POST']) def search(): """Search query in q and return results. -- cgit v1.2.3