Merge pull request #373 from teaxyz/v0-adoption-test

adopt app.tea.xyz/v0/*
This commit is contained in:
Neil 2023-06-08 22:24:28 +08:00 committed by GitHub
commit c320ba8f2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 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://app.tea.xyz/api/bottles") fetch("https://app.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://app.tea.xyz/api/bottles/'); const url = window.location.pathname.replace('/+', 'https://app.tea.xyz/v0/bottles/');
fetch(url) fetch(url)
.then((res) => res.json()) .then((res) => res.json())
.then((res) => { .then((res) => {

File diff suppressed because one or more lines are too long

View file

@ -14,7 +14,7 @@
$('#stat-two').html('<div style="height: 400px"></div>'); $('#stat-two').html('<div style="height: 400px"></div>');
try { try {
fetch('https://app.tea.xyz/api/signups') fetch('https://app.tea.xyz/v0/signups')
.then(res => res.json()) .then(res => res.json())
.then(res => { .then(res => {
const signups = res.signups ? res.signups.toLocaleString() : ""; const signups = res.signups ? res.signups.toLocaleString() : "";