From 93c096175169207f9f3349b26c015709b10e3b5d Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Tue, 20 May 2025 18:04:19 +0530 Subject: [PATCH] added GetNot,CreateNote,UpdateNote inside DirectoryRepository --- src/repositories/DirectoryRepository.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/repositories/DirectoryRepository.jsx b/src/repositories/DirectoryRepository.jsx index a45458a8..f1ad4dc7 100644 --- a/src/repositories/DirectoryRepository.jsx +++ b/src/repositories/DirectoryRepository.jsx @@ -9,5 +9,7 @@ export const DirectoryRepository = { GetContactProfile: ( id ) => api.get( `/api/directory/profile/${ id }` ), - CreateNote:(data)=>api.post('/api/directory/note',data) + CreateNote: ( data ) => api.post( '/api/directory/note', data ), + GetNote: ( id ) => api.get( `/api/directory/note/${ id }` ), + UpdateNote:(id,data)=>api.put(`/api/directory/note/${id }`,data ) } \ No newline at end of file