Skip to content

Commit 2a5a5db

Browse files
committed
Update Avatar.
1 parent b29ad58 commit 2a5a5db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/composes/services/useFiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const useFiles = () => {
66
const uploadUserPhoto = async (file) => {
77
const data = new FormData()
88
data.append('image', file, file.fileName)
9-
return await request('photo/profile', { method: 'put', data })
9+
return await request('files/avatar', { method: 'put', data })
1010
}
1111

1212
const uploadUserImage = async (file) => {

src/composes/services/useUser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const useUser = () => {
1616
return rest
1717
}
1818

19-
const getUserProfileUrl = (uuid) => `${BASE_URL}/photo/profile/${uuid}`
19+
const getUserProfileUrl = (uuid) => `${BASE_URL}/files/avatar/${uuid}`
2020

2121
return {
2222
user,

0 commit comments

Comments
 (0)