浏览代码

removing placeholder

logicp 6 年之前
父节点
当前提交
5fac393689
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/form.js

+ 2 - 2
src/form.js

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