forked from Icycoide/searxng
healthcheck endpoint
This commit is contained in:
parent
ebf63f4caa
commit
13c355c4c4
2 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue