m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-11 14:43:49 -05:00

Change API versioning to match Cup version

This commit is contained in:
Sergio
2024-12-07 16:30:07 +02:00
parent e5e60c4abc
commit f6ac43aac0
3 changed files with 7 additions and 6 deletions

View File

@@ -15,8 +15,8 @@ export default function RefreshButton() {
request.open(
"GET",
process.env.NODE_ENV === "production"
? "/api/v1/refresh"
: `http://${window.location.hostname}:8000/api/v1/refresh`,
? "/api/v3/refresh"
: `http://${window.location.hostname}:8000/api/v3/refresh`,
);
request.send();
};