summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorIgor Rzegocki <igor@rzegocki.pl>2021-10-02 17:00:37 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2021-10-29 10:18:17 +0000
commit13c355c4c45d79f84666c8306463969db804f83c (patch)
tree5892a3cad57683fa5b1e505a820726a9dc06c15b /searx/webapp.py
parentebf63f4caaa692574e5df88b3316f764066bfb10 (diff)
healthcheck endpoint
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py5
1 files changed, 5 insertions, 0 deletions
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.