From d0a8424731847d9e5129127cef32788eb8235eef Mon Sep 17 00:00:00 2001 From: Hansoo Date: Sat, 1 Aug 2020 19:10:41 +0900 Subject: [PATCH] api end point fix --- main-web/client/.env | 2 +- main-web/client/src/components/contact.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main-web/client/.env b/main-web/client/.env index 988c041..47ac766 100644 --- a/main-web/client/.env +++ b/main-web/client/.env @@ -1 +1 @@ -REACT_APP_API_URL=http://localhost:7000/ \ No newline at end of file +REACT_APP_API_URL=http://localhost:8080/ \ No newline at end of file diff --git a/main-web/client/src/components/contact.tsx b/main-web/client/src/components/contact.tsx index 026e146..879c8eb 100644 --- a/main-web/client/src/components/contact.tsx +++ b/main-web/client/src/components/contact.tsx @@ -15,7 +15,7 @@ export const Contact: FunctionComponent = (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) {