Skip to content

Commit

Permalink
Merge pull request #14 from danieldegroot2/api-url
Browse files Browse the repository at this point in the history
Switch to api.openstreetmap.org API host
  • Loading branch information
LolloDev5123 authored Nov 13, 2023
2 parents 723a55b + 57b5676 commit d89243d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/js/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down Expand Up @@ -1372,4 +1372,4 @@ const maps = (() => {
reopen_osm_note,
comment_osm_note,
};
})();
})();
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down Expand Up @@ -3248,4 +3248,4 @@ document.addEventListener("DOMContentLoaded", function () {

window.PrintControl = new L.Control.BigImage().addTo(map)

});
});

0 comments on commit d89243d

Please sign in to comment.