From 1d93311b12599d1032a03e6192210606be730370 Mon Sep 17 00:00:00 2001 From: Sergei Date: Sun, 4 Jan 2026 12:53:12 -0800 Subject: [PATCH] Fix API endpoints to match backend routes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - GET /me/profile → GET /auth/me - PATCH /me/profile → PATCH /auth/profile These endpoints now correctly match the backend implementation in backend/src/routes/auth.js --- services/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/api.ts b/services/api.ts index cc0ea73..355152c 100644 --- a/services/api.ts +++ b/services/api.ts @@ -404,7 +404,7 @@ class ApiService { } try { - const response = await fetch(`${WELLNUO_API_URL}/me/profile`, { + const response = await fetch(`${WELLNUO_API_URL}/auth/me`, { method: 'GET', headers: { 'Authorization': `Bearer ${token}`, @@ -449,7 +449,7 @@ class ApiService { } try { - const response = await fetch(`${WELLNUO_API_URL}/me/profile`, { + const response = await fetch(`${WELLNUO_API_URL}/auth/profile`, { method: 'PATCH', headers: { 'Authorization': `Bearer ${token}`,