From f8e81d10531ba769db1622c9ef577b37b3bef539 Mon Sep 17 00:00:00 2001 From: neil molina Date: Fri, 26 May 2023 12:21:00 +0800 Subject: [PATCH] adopt new infra api endpoints --- src/assets/scripts/bottles.jsx | 2 +- src/assets/scripts/package-bottles.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/scripts/bottles.jsx b/src/assets/scripts/bottles.jsx index ef32d1a..869be50 100644 --- a/src/assets/scripts/bottles.jsx +++ b/src/assets/scripts/bottles.jsx @@ -3,7 +3,7 @@ function Bottles() { const [isLoading, setLoading] = React.useState(true); React.useEffect(() => { - fetch("https://app.tea.xyz/api/bottles") + fetch("https://api.tea.xyz/v0/bottles") .then((res) => res.json()) .then((res) => { setBottles(res); diff --git a/src/assets/scripts/package-bottles.jsx b/src/assets/scripts/package-bottles.jsx index b3a36e7..1449643 100644 --- a/src/assets/scripts/package-bottles.jsx +++ b/src/assets/scripts/package-bottles.jsx @@ -3,7 +3,7 @@ function PackageBottles() { const [isLoading, setIsLoading] = React.useState(true); React.useEffect(() => { - const url = window.location.pathname.replace('/+', 'https://app.tea.xyz/api/bottles/'); + const url = window.location.pathname.replace('/+', 'https://api.tea.xyz/v0/bottles/'); fetch(url) .then((res) => res.json()) .then((res) => {