diff --git a/public/trashure-client.js b/public/trashure-client.js index d8d34f5..db67009 100644 --- a/public/trashure-client.js +++ b/public/trashure-client.js @@ -70,8 +70,8 @@ function showPosition(position, cb) { // Fetches information to be displayed const handlePinClick = function (e) { - // const url = `https://trashure-app.herokuapp.com/api/trashure_items/${e.target.metadata.id}`; - const url = `http://localhost:8080/api/trashure_items/${e.target.metadata.id}`; + const url = `https://trashure-app.herokuapp.com/api/trashure_items/${e.target.metadata.id}`; + // const url = `http://localhost:8080/api/trashure_items/${e.target.metadata.id}`; axios.get(url).then((res) => { res.data.forEach(function (data) { document.querySelector('.description-of-item').classList.remove('hidden'); @@ -90,8 +90,8 @@ const handlePinClick = function (e) { reverseGeocode(fakevent); - // const url = `https://trashure-app.herokuapp.com/api/users/${data.owner_id}`; - const url = `http://localhost:8080/api/users/${data.owner_id}`; + const url = `https://trashure-app.herokuapp.com/api/users/${data.owner_id}`; + // const url = `http://localhost:8080/api/users/${data.owner_id}`; axios.get(url).then((res) => { document.querySelector( '.owner-of-item' @@ -155,8 +155,8 @@ function getMap() { var center = map.getCenter(); - // const url = 'https://trashure-app.herokuapp.com/api/trashure_items'; - const url = 'http://localhost:8080/api/trashure_items'; + const url = 'https://trashure-app.herokuapp.com/api/trashure_items'; + // const url = 'http://localhost:8080/api/trashure_items'; axios.get(url).then((res) => { res.data.forEach(function (data) {