From cc7ead635fe1648bc8898d1cc8366b0ce5be1852 Mon Sep 17 00:00:00 2001 From: ck <21735205+cyperdark@users.noreply.github.com> Date: Sat, 16 Nov 2024 19:56:03 +0300 Subject: [PATCH] fix: Switch api URL --- packages/server/assets/homepage.js | 2 +- packages/server/utils/counters.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/assets/homepage.js b/packages/server/assets/homepage.js index a8f4a2ac..4d0399d2 100644 --- a/packages/server/assets/homepage.js +++ b/packages/server/assets/homepage.js @@ -1516,7 +1516,7 @@ document.addEventListener('keydown', (event) => { window.onload = async () => { try { window.closeModal_func = closeModal; - const requst = await fetch('https://osuck.net/tosu/api.json'); + const requst = await fetch('https://tosu.app/api.json'); const json = await requst.json(); const installed = document.querySelectorAll('.calu'); diff --git a/packages/server/utils/counters.ts b/packages/server/utils/counters.ts index 58d77a70..946e6a69 100644 --- a/packages/server/utils/counters.ts +++ b/packages/server/utils/counters.ts @@ -447,7 +447,7 @@ export async function buildExternalCounters( let totalAvailable = 0; try { - const request: any = await fetch('https://osuck.net/tosu/api.json'); + const request: any = await fetch('https://tosu.app/api.json'); const json: ICounter[] = await request.json(); const exists = getLocalCounters();