Add /api/ to all rest call paths

This commit is contained in:
Brett Williams
2022-12-07 12:30:44 -08:00
parent 0bf2eaac76
commit 7a3fed1960
4 changed files with 20 additions and 20 deletions

View File

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