added image upload feature

This commit is contained in:
2026-03-16 12:10:55 +05:30
parent ef52695bd9
commit e841860bd4
4 changed files with 324 additions and 11 deletions

View File

@@ -73,7 +73,7 @@ export async function updateUserProfile(
updates: { displayName?: string; photoURL?: string; theme?: string },
token: string
) {
return apiCall(`/api/users/update/${userId}`, {
return apiCall(`/api/users/${userId}`, {
method: 'PUT',
body: updates,
token,