|
@@ -25,12 +25,12 @@ export class App extends React.Component {
|
|
this.props.getServices();
|
|
this.props.getServices();
|
|
|
|
|
|
|
|
|
|
- // fetch("https://api-clinics.herokuapp.com/api/v1/doctors", {
|
|
|
|
- // method: "GET",
|
|
|
|
- // credentials: "include"
|
|
|
|
- // })
|
|
|
|
- // .then(res => res.json())
|
|
|
|
- // .then(res => console.log (res))
|
|
|
|
|
|
+ fetch("https://api-clinics.herokuapp.com/api/v1/doctors", {
|
|
|
|
+ method: "GET",
|
|
|
|
+ credentials: "include"
|
|
|
|
+ })
|
|
|
|
+ .then(res => res.json())
|
|
|
|
+ .then(res => console.log (res))
|
|
|
|
|
|
// fetch("https://api-clinics.herokuapp.com/api/v1/services", {
|
|
// fetch("https://api-clinics.herokuapp.com/api/v1/services", {
|
|
// method: "GET",
|
|
// method: "GET",
|
|
@@ -43,7 +43,7 @@ export class App extends React.Component {
|
|
// method : "POST",
|
|
// method : "POST",
|
|
// credentials: "include",
|
|
// credentials: "include",
|
|
// headers: {
|
|
// headers: {
|
|
- // "Content-Type": "aplication/json"
|
|
|
|
|
|
+ // "Content-Type": "application/json"
|
|
// },
|
|
// },
|
|
// body: JSON.stringify ({
|
|
// body: JSON.stringify ({
|
|
// email: "test@test.com",
|
|
// email: "test@test.com",
|