|
@@ -107,7 +107,7 @@ class TextFields extends React.Component {
|
|
|
significantOther: this.state.significantOther,
|
|
|
})
|
|
|
|
|
|
- const response = await fetch('http://localhost:3001/api/attendee', {
|
|
|
+ const response = await fetch('http://christmas.logicp.ca/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:3001/api/list', {
|
|
|
+ await fetch('http://christmas.logicp.ca/api/list', {
|
|
|
method: 'get',
|
|
|
}).then(data => data.json().then(finalData => attendees = finalData.attendees))
|
|
|
return attendees
|