Skip to content

Commit

Permalink
urls changed from local to heroku urls
Browse files Browse the repository at this point in the history
  • Loading branch information
katemat committed Jul 15, 2020
1 parent 7b18ffe commit 5a9f607
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/trashure-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ function showPosition(position, cb) {

// Fetches information to be displayed
const handlePinClick = function (e) {
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');
Expand All @@ -89,7 +90,8 @@ const handlePinClick = function (e) {

reverseGeocode(fakevent);

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'
Expand Down

0 comments on commit 5a9f607

Please sign in to comment.