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
+1 -1
View File
@@ -133,7 +133,7 @@ export default function ThreadDetailPage() {
setSubmitting(true);
try {
const res = await fetch("/api/forum/posts", {
const res = await fetch("/mobile/api/forum/posts", {
method: "POST",
headers: {
"Content-Type": "application/json",
+2 -2
View File
@@ -87,7 +87,7 @@ export default function ForumPage() {
const fetchCategories = useCallback(async () => {
try {
const res = await fetch("/api/forum/categories");
const res = await fetch("/mobile/api/forum/categories");
const data = await res.json();
if (res.ok) {
setCategories(data.categories);
@@ -159,7 +159,7 @@ export default function ForumPage() {
setCreating(true);
try {
const res = await fetch("/api/forum/threads", {
const res = await fetch("/mobile/api/forum/threads", {
method: "POST",
headers: {
"Content-Type": "application/json",