diff --git a/frontend/src/components/Graph.js b/frontend/src/components/Graph.js index 776c27282327fbf18479242f3df2accd97d7e3c2..369edc5af4754bfc49f21550edd37c216ae9e8cb 100644 --- a/frontend/src/components/Graph.js +++ b/frontend/src/components/Graph.js @@ -16,9 +16,9 @@ export default function Graph({ place, type }) { React.useEffect(() => { axios .get( - `${process.env.REACT_APP_BASE_URL_BACK}/${encodeURIComponent(place)}/${encodeURIComponent( - type, - )}_graph`, + `${process.env.REACT_APP_BASE_URL_BACK}/${encodeURIComponent( + place, + )}/stats/${encodeURIComponent(type)}_graph`, ) .then((response) => { setData(response.data);