From ab5dd3025b5a8c75105a40acbca8cb100971e7a3 Mon Sep 17 00:00:00 2001 From: Aymeric Chaumont <aymeric.chaumont@student-cs.fr> Date: Mon, 11 Jul 2022 10:48:41 +0200 Subject: [PATCH] fixed route call in Graph.js --- frontend/src/components/Graph.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Graph.js b/frontend/src/components/Graph.js index 776c272..369edc5 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); -- GitLab