Fix API endpoints to match backend routes

- 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
This commit is contained in:
Sergei 2026-01-04 12:53:12 -08:00
parent f4ff281bcc
commit 1d93311b12

View File

@ -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}`,