summaryrefslogtreecommitdiff
path: root/current_king.py
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2025-08-06 19:42:43 -0400
committerRobby Zambito <contact@robbyzambito.me>2025-08-06 19:44:31 -0400
commita5ac279f6882d27b92e482125a87635d9c1ad00d (patch)
tree527e5ab68a3e605ec2b6d7ebd32a057971796201 /current_king.py
parentd35903bf5b56cc40e3b61d34f57c192d6a8b3430 (diff)
Use /api/v1 for the API prefix
Diffstat (limited to 'current_king.py')
-rw-r--r--current_king.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/current_king.py b/current_king.py
index 4334140..6bd06b7 100644
--- a/current_king.py
+++ b/current_king.py
@@ -4,7 +4,7 @@ import urllib.error
def get_king_data():
"""Request data from localhost king endpoint and return response body as string."""
try:
- with urllib.request.urlopen("http://localhost:8080/v1/king") as response:
+ with urllib.request.urlopen("http://localhost:8080/api/v1/king") as response:
return response.read().decode('utf-8')
except urllib.error.URLError as e:
raise Exception(f"Failed to fetch king data: {e}")