api end point fix

This commit is contained in:
2020-08-01 19:10:41 +09:00
parent 610b5c0cb7
commit d0a8424731
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
REACT_APP_API_URL=http://localhost:7000/
REACT_APP_API_URL=http://localhost:8080/

View File

@@ -15,7 +15,7 @@ export const Contact: FunctionComponent<ComponentProps> = (props): JSX.Element =
useEffect(() => {
if (contactItems.length === 0) {
const url = process.env.REACT_APP_API_URL;
const apiUrl = `${url}api/about`;
const apiUrl = `${url}api/contact`;
axios.get(apiUrl)
.then((response) => {
if (response.data) {