mirror of
https://github.com/ivabus/www
synced 2024-11-21 20:25:05 +03:00
update to new tea api: app.tea.xyz/v0
This commit is contained in:
parent
338340d716
commit
7c99e32c9f
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
$('#stat-two').html('<div style="height: 400px"></div>');
|
||||
|
||||
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() : "";
|
||||
|
|
Loading…
Reference in a new issue