edia all routes

This commit is contained in:
2025-09-05 13:15:11 +02:00
parent 3872397082
commit a78a8dc3ce
8 changed files with 230 additions and 76 deletions

View File

@@ -106,7 +106,7 @@ async function logout() {
// Load locations from database
async function loadLocations() {
try {
const response = await fetch('/public-api/locations');
const response = await fetch('/api/v1/public/locations');
if (!response.ok) {
throw new Error('Failed to fetch locations');
}
@@ -330,7 +330,7 @@ async function loadData() {
}
// Fetch times with player and location data from local database
const response = await fetch(`/public-api/times-with-details?${params.toString()}`);
const response = await fetch(`/api/v1/public/times-with-details?${params.toString()}`);
if (!response.ok) {
throw new Error('Failed to fetch times');
}