diff --git a/miniapp/assets/app.js b/miniapp/assets/app.js index 03a98fd..4873dd9 100644 --- a/miniapp/assets/app.js +++ b/miniapp/assets/app.js @@ -3,7 +3,9 @@ // Ходим на backend → получаем профиль (роль, статус) → рендерим меню. const tg = window.Telegram?.WebApp; -const BACKEND_URL = "https://script.google.com/macros/s/AKfycbyxSwfD4hi5Y176nKV3tmnQq21kCQM3BBm34WGgObgAuybsAW7WPEuxlrPZ1a16viK3/exec"; +// Cloudflare Quick Tunnel → VPS FastAPI backend (GigaChat). +// Временный URL — пока wasrusgen1.pro в verification-hold; затем переключим на https://api.wasrusgen1.pro +const BACKEND_URL = "https://prepared-alfred-story-dale.trycloudflare.com"; const app = document.getElementById("app"); diff --git a/miniapp/assets/podbor.js b/miniapp/assets/podbor.js index 42bb303..4124162 100644 --- a/miniapp/assets/podbor.js +++ b/miniapp/assets/podbor.js @@ -640,7 +640,7 @@ const Podbor = (function () { } try { - const res = await fetch(`${BACKEND_URL}?path=podbor`, { + const res = await fetch(`${BACKEND_URL}/api/podbor`, { method: "POST", body: JSON.stringify({ initData: tg?.initData || "", diff --git a/miniapp/index.html b/miniapp/index.html index 5f3d3a8..d2f029e 100644 --- a/miniapp/index.html +++ b/miniapp/index.html @@ -12,8 +12,8 @@ - - + +
@@ -21,9 +21,9 @@
- - - - + + + +