diff --git a/assets/js/maps.js b/assets/js/maps.js index 4eaf714..d1bcf1b 100644 --- a/assets/js/maps.js +++ b/assets/js/maps.js @@ -980,7 +980,7 @@ const maps = (() => { map.on("moveend", fetchNotes); }; - let osm_api_createnote = 'https://www.openstreetmap.org/api/0.6/notes.json' + let osm_api_createnote = 'https://api.openstreetmap.org/api/0.6/notes.json' let create_osm_note = function (pos) { @@ -1372,4 +1372,4 @@ const maps = (() => { reopen_osm_note, comment_osm_note, }; -})(); \ No newline at end of file +})(); diff --git a/index.js b/index.js index eeb5119..1ae1cd5 100644 --- a/index.js +++ b/index.js @@ -772,7 +772,7 @@ document.addEventListener("DOMContentLoaded", function () { let n = "Bearer " + localStorage.getItem("openstreetmap_token"); // get osm account username - fetch("https://www.openstreetmap.org/api/0.6/user/details", { + fetch("https://api.openstreetmap.org/api/0.6/user/details", { headers: { Authorization: n, }, @@ -3248,4 +3248,4 @@ document.addEventListener("DOMContentLoaded", function () { window.PrintControl = new L.Control.BigImage().addTo(map) -}); \ No newline at end of file +});