mirror of
https://github.com/wasrusgen/zov-tech.git
synced 2026-06-03 15:04:50 +00:00
fix(miniapp): /api/me path for FastAPI backend (was ?path=me from Apps Script)
This commit is contained in:
parent
f85d3a9d1e
commit
a849491f56
@ -59,7 +59,7 @@ async function fetchMe() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const explicitRole = urlParams.get("role");
|
||||
|
||||
const res = await fetch(`${BACKEND_URL}?path=me`, {
|
||||
const res = await fetch(`${BACKEND_URL}/api/me`, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
initData: tg?.initData || "",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user