mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
healthcheck endpoint
This commit is contained in:
committed by
Markus Heiser
parent
ebf63f4caa
commit
13c355c4c4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user