modified GetContact method of taking parma active or inactive
This commit is contained in:
parent
6943f4e9ca
commit
7e4f4c8973
@ -1,7 +1,7 @@
|
||||
import {api} from "../utils/axiosClient";
|
||||
|
||||
export const DirectoryRepository = {
|
||||
GetContacts: () => api.get( '/api/directory' ),
|
||||
GetContacts: (isActive) => api.get( `/api/directory?active=${isActive}` ),
|
||||
CreateContact: ( data ) => api.post( '/api/directory', data ),
|
||||
UpdateContact: ( id, data ) => api.put( `/api/directory/${ id }`, data ),
|
||||
DeleteContact:(id)=>api.delete(`/api/directory/${id}`),
|
||||
|
Loading…
x
Reference in New Issue
Block a user