We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b29ad58 commit 2a5a5dbCopy full SHA for 2a5a5db
src/composes/services/useFiles.js
@@ -6,7 +6,7 @@ export const useFiles = () => {
6
const uploadUserPhoto = async (file) => {
7
const data = new FormData()
8
data.append('image', file, file.fileName)
9
- return await request('photo/profile', { method: 'put', data })
+ return await request('files/avatar', { method: 'put', data })
10
}
11
12
const uploadUserImage = async (file) => {
src/composes/services/useUser.js
@@ -16,7 +16,7 @@ export const useUser = () => {
16
return rest
17
18
19
- const getUserProfileUrl = (uuid) => `${BASE_URL}/photo/profile/${uuid}`
+ const getUserProfileUrl = (uuid) => `${BASE_URL}/files/avatar/${uuid}`
20
21
return {
22
user,
0 commit comments