This commit is contained in:
neil molina 2023-05-26 22:40:47 +08:00
parent f8e81d1053
commit 22c760377a
No known key found for this signature in database
GPG key ID: 52D69BF1F02F4267
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ function Bottles() {
const [isLoading, setLoading] = React.useState(true); const [isLoading, setLoading] = React.useState(true);
React.useEffect(() => { React.useEffect(() => {
fetch("https://api.tea.xyz/v0/bottles") fetch("https://api.dev.tea.xyz/v0/bottles")
.then((res) => res.json()) .then((res) => res.json())
.then((res) => { .then((res) => {
setBottles(res); setBottles(res);

View file

@ -3,7 +3,7 @@ function PackageBottles() {
const [isLoading, setIsLoading] = React.useState(true); const [isLoading, setIsLoading] = React.useState(true);
React.useEffect(() => { React.useEffect(() => {
const url = window.location.pathname.replace('/+', 'https://api.tea.xyz/v0/bottles/'); const url = window.location.pathname.replace('/+', 'https://api.dev.tea.xyz/v0/bottles/');
fetch(url) fetch(url)
.then((res) => res.json()) .then((res) => res.json())
.then((res) => { .then((res) => {