Skip to content

Commit 22e66b4

Browse files
committed
PA-757: Domains api is v1 not v0
1 parent 30c888b commit 22e66b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonanywhere_core/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_api_endpoint(username: str, flavor: str) -> str:
2020
"PYTHONANYWHERE_SITE",
2121
"www." + os.environ.get("PYTHONANYWHERE_DOMAIN", "pythonanywhere.com"),
2222
)
23-
if flavor == "websites":
23+
if flavor == "websites" or flavor == "domains":
2424
return f"https://{hostname}/api/v1/user/{username}/{flavor}/"
2525
return f"https://{hostname}/api/v0/user/{username}/{flavor}/"
2626

0 commit comments

Comments
 (0)