modified GetContact method of taking parma active or inactive

This commit is contained in:
Pramod Mahajan 2025-05-23 16:58:03 +05:30
parent 6943f4e9ca
commit 7e4f4c8973

View File

@ -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}`),