Skip to content
Snippets Groups Projects
Commit ab5dd302 authored by Aymeric Chaumont's avatar Aymeric Chaumont
Browse files

fixed route call in Graph.js

parent 14b3fd00
Branches
No related tags found
2 merge requests!29Time dependence,!28improve front
Pipeline #43936 passed
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment