feat: adding healthcheck

This commit is contained in:
Chubby Granny Chaser 2024-06-27 18:46:59 +01:00
parent ccaea88a88
commit 7cd121cb80
No known key found for this signature in database
4 changed files with 37 additions and 17 deletions

View file

@ -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":