mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
Add file attachments
This commit is contained in:
parent
202abacaec
commit
6a68ec9c1e
103 changed files with 1847 additions and 305 deletions
|
@ -19,14 +19,8 @@ const updateUserPassword = (id, data, headers) =>
|
|||
const updateUserUsername = (id, data, headers) =>
|
||||
socket.patch(`/users/${id}/username`, data, headers);
|
||||
|
||||
const uploadUserAvatar = (id, file, headers) =>
|
||||
http.post(
|
||||
`/users/${id}/upload-avatar`,
|
||||
{
|
||||
file,
|
||||
},
|
||||
headers,
|
||||
);
|
||||
const updateUserAvatar = (id, data, headers) =>
|
||||
http.post(`/users/${id}/update-avatar`, data, headers);
|
||||
|
||||
const deleteUser = (id, headers) => socket.delete(`/users/${id}`, undefined, headers);
|
||||
|
||||
|
@ -38,6 +32,6 @@ export default {
|
|||
updateUserEmail,
|
||||
updateUserPassword,
|
||||
updateUserUsername,
|
||||
uploadUserAvatar,
|
||||
updateUserAvatar,
|
||||
deleteUser,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue