mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding healthcheck
This commit is contained in:
parent
ccaea88a88
commit
7cd121cb80
4 changed files with 37 additions and 17 deletions
|
@ -72,6 +72,9 @@ class Handler(BaseHTTPRequestHandler):
|
|||
status = downloader.get_download_status()
|
||||
|
||||
self.wfile.write(json.dumps(status).encode('utf-8'))
|
||||
if self.path == "/healthcheck":
|
||||
self.send_response(200)
|
||||
self.end_headers()
|
||||
|
||||
def do_POST(self):
|
||||
if self.path == "/action":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue