From 7c99e32c9f64d875c2bdcfe9b8c161dba7d656d3 Mon Sep 17 00:00:00 2001 From: neil molina Date: Thu, 8 Jun 2023 22:22:27 +0800 Subject: [PATCH] update to new tea api: app.tea.xyz/v0 --- src/assets/scripts/bottles.jsx | 2 +- src/assets/scripts/package-bottles.jsx | 2 +- src/layouts/partials/auth-data-snippet.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/scripts/bottles.jsx b/src/assets/scripts/bottles.jsx index 4d0dba8..3598b65 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://158h030vz0.execute-api.us-east-1.amazonaws.com/prod/v0/bottles") + fetch("https://app.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 3f164a2..bd5332e 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://158h030vz0.execute-api.us-east-1.amazonaws.com/prod/v0/bottles/'); + const url = window.location.pathname.replace('/+', 'https://app.tea.xyz/v0/bottles/'); fetch(url) .then((res) => res.json()) .then((res) => { diff --git a/src/layouts/partials/auth-data-snippet.html b/src/layouts/partials/auth-data-snippet.html index e85a4e6..d0c77e3 100644 --- a/src/layouts/partials/auth-data-snippet.html +++ b/src/layouts/partials/auth-data-snippet.html @@ -14,7 +14,7 @@ $('#stat-two').html('
'); try { - fetch('https://158h030vz0.execute-api.us-east-1.amazonaws.com/prod/v0/signups') + fetch('https://app.tea.xyz/v0/signups') .then(res => res.json()) .then(res => { const signups = res.signups ? res.signups.toLocaleString() : "";