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

@@ -202,7 +202,7 @@ class RenderServerProxy:
def request_data(self, payload, timeout=5):
try:
req = requests.get(f'http://{self.hostname}:{self.port}/{payload}', timeout=timeout)
req = requests.get(f'http://{self.hostname}:{self.port}/api/{payload}', timeout=timeout)
if req.ok:
return req.json()
except Exception as e: