mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 08:48:13 +00:00
Add /api/ to all rest call paths
This commit is contained in:
@@ -213,7 +213,7 @@ class RenderQueue:
|
||||
err_msg = f"Client '{hostname}' already registered"
|
||||
else:
|
||||
try:
|
||||
response = requests.get(f"http://{hostname}:8080/status", timeout=3)
|
||||
response = requests.get(f"http://{hostname}:8080/api/status", timeout=3)
|
||||
if response.ok:
|
||||
cls.render_clients.append(hostname)
|
||||
logger.info(f"Client '{hostname}' successfully registered")
|
||||
@@ -241,7 +241,7 @@ class RenderQueue:
|
||||
@staticmethod
|
||||
def is_client_available(client_hostname, timeout=3):
|
||||
try:
|
||||
response = requests.get(f"http://{client_hostname}:8080/status", timeout=timeout)
|
||||
response = requests.get(f"http://{client_hostname}:8080/api/status", timeout=timeout)
|
||||
if response.ok:
|
||||
return True
|
||||
except requests.ConnectionError as e:
|
||||
|
||||
Reference in New Issue
Block a user