fix: add /mobile prefix to all client-side fetch() calls for basePath

This commit is contained in:
root
2026-06-15 11:38:03 +02:00
parent 15300d3e42
commit 947fe3b66d
13 changed files with 29 additions and 29 deletions
+3 -3
View File
@@ -66,7 +66,7 @@ export default function WalletPage() {
const fetchWallet = async () => {
try {
const res = await fetch("/api/wallet", {
const res = await fetch("/mobile/api/wallet", {
headers: { Authorization: `Bearer ${token}` },
});
if (res.ok) {
@@ -84,7 +84,7 @@ export default function WalletPage() {
setTopupLoading(amount);
try {
const res = await fetch("/api/wallet/top-up/create-checkout", {
const res = await fetch("/mobile/api/wallet/top-up/create-checkout", {
method: "POST",
headers: {
"Content-Type": "application/json",
@@ -139,7 +139,7 @@ export default function WalletPage() {
setCashoutMessage(null);
try {
const res = await fetch("/api/wallet", {
const res = await fetch("/mobile/api/wallet", {
method: "POST",
headers: {
"Content-Type": "application/json",