Changed API Endpoints to new server

This commit is contained in:
sewmina7@gmail.com 2024-06-20 22:43:35 +05:30
parent fae17d0438
commit 59ac29e3da

View File

@ -41,7 +41,7 @@ function Home() {
useEffect(() => {
const intervalId = setInterval(async () => {
setIncrementNumber((prevNumber) => prevNumber + 1);
const response = await fetch('https://vps.playpoolstudios.com/callfi/get_leaderboard.php');
const response = await fetch('https://api.callfi.io/get_leaderboard.php');
if (!response.ok) {
throw new Error('Network response was not ok');
}
@ -59,7 +59,7 @@ function Home() {
const postLoginAPI = async (usertag) => {
try {
const response = await fetch('https://vps.playpoolstudios.com/callfi/register_twitter_user.php?tag=' + usertag);
const response = await fetch('https://api.callfi.io/register_twitter_user.php?tag=' + usertag);
if (!response.ok) {
throw new Error('Network response was not ok');