Skip to content

Commit

Permalink
Update API URL called
Browse files Browse the repository at this point in the history
  • Loading branch information
ML-Chen committed Apr 30, 2020
1 parent f00c2d7 commit b43704b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class Post extends React.Component<any, any> {
console.log(typeof price);
console.log(typeof capacity);
console.log(typeof today);
await wretch('https://storestash.herokuapp.com/api/listings/new')
await wretch('https://storestash.herokuapp.com/api/new-listing')
.post({ id, hostId, lat, lon, capacity, startDate: new Date(this.state.startDate), endDate: new Date(this.state.endDate), price, image: this.state.imageUrl })
.json(data => console.log(data));
this.props.history.push('/listing_confirmation')
Expand Down

0 comments on commit b43704b

Please sign in to comment.