ваше сообщение коммита
This commit is contained in:
11
frontend/src/services/contactsService.js
Normal file
11
frontend/src/services/contactsService.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import api from '../api/axios';
|
||||
|
||||
export default {
|
||||
async getContacts() {
|
||||
const res = await api.get('/api/users');
|
||||
if (res.data && res.data.success) {
|
||||
return res.data.contacts;
|
||||
}
|
||||
return [];
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user