|
@@ -107,7 +107,7 @@ class TextFields extends React.Component {
|
|
|
guest: this.state.significantOther,
|
|
|
})
|
|
|
|
|
|
- const response = await fetch('http://localhost:3002/attendee', {
|
|
|
+ const response = await fetch('/api/attendee', {
|
|
|
method: 'post',
|
|
|
body: body,
|
|
|
headers: new Headers({
|
|
@@ -123,7 +123,7 @@ class TextFields extends React.Component {
|
|
|
|
|
|
fetchAttendees = async () => {
|
|
|
let attendees
|
|
|
- await fetch('http://localhost:3002/list', {
|
|
|
+ await fetch('/api/list', {
|
|
|
method: 'get',
|
|
|
}).then(data => {
|
|
|
data.json().then(finalData => {
|