Skip to content

Commit

Permalink
fix: api url
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Apr 11, 2024
1 parent 075a0cf commit 48c1566
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ const Stats = () => {
const fetchData = async () => {
try {
const response = await fetch(
"http://localhost:3615/public/metabase?question=0"
"https://api-ozensemble.fabrique.social.gouv.fr/public/metabase?question=0"
)
const responseData = await response.json()
const data = JSON.parse(responseData.result)

setResult(data)

const response2 = await fetch(
"http://localhost:3615/public/metabase?question=1"
"https://api-ozensemble.fabrique.social.gouv.fr/public/metabase?question=1"
)
const responseData2 = await response2.json()
const data2 = JSON.parse(responseData2.result)
Expand Down

0 comments on commit 48c1566

Please sign in to comment.