ваше сообщение коммита
This commit is contained in:
@@ -7,5 +7,13 @@ export default {
|
||||
return res.data.contacts;
|
||||
}
|
||||
return [];
|
||||
},
|
||||
async updateContact(id, data) {
|
||||
const res = await api.patch(`/api/users/${id}`, data);
|
||||
return res.data;
|
||||
},
|
||||
async deleteContact(id) {
|
||||
const res = await api.delete(`/api/users/${id}`);
|
||||
return res.data;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user