api end point fix
This commit is contained in:
@@ -1 +1 @@
|
||||
REACT_APP_API_URL=http://localhost:7000/
|
||||
REACT_APP_API_URL=http://localhost:8080/
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user