Skip to content

Commit

Permalink
tracks: update URLs for garmin trakcs
Browse files Browse the repository at this point in the history
  • Loading branch information
wladich committed Jan 10, 2024
1 parent 868d410 commit 8e92103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/leaflet.control.track-list/lib/services/garmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class GarminRoute extends GarminBase {
const m = this.urlRe.exec(this.origUrl);
const trackId = this.trackId = m[1];
return [{
url: urlViaCorsProxy(`https://connect.garmin.com/modern/proxy/course-service/course/${trackId}`),
url: urlViaCorsProxy(`https://connect.garmin.com/course-service/course/${trackId}`),
options: {
responseType: 'json',
isResponseSuccess: (xhr) => xhr.status === 200 || xhr.status === 403 || xhr.status === 404
Expand Down Expand Up @@ -65,7 +65,7 @@ class GarminActivity extends GarminBase {
return [
{
url: urlViaCorsProxy(
`https://connect.garmin.com/modern/proxy/activity-service/activity/${trackId}/details`),
`https://connect.garmin.com/activity-service/activity/${trackId}/details`),
options: {
responseType: 'json',
isResponseSuccess: (xhr) => xhr.status === 200 || xhr.status === 403 || xhr.status === 404
Expand Down

0 comments on commit 8e92103

Please sign in to comment.