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:
parent
f4ff281bcc
commit
1d93311b12
@ -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}`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user