From 4cb2bec73a9ee23e5a138772b7b14ab0c795b9fe Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Mon, 16 Jun 2025 18:42:41 +0530 Subject: [PATCH] added audit task api in task repo --- src/repositories/TaskRepository.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/repositories/TaskRepository.jsx b/src/repositories/TaskRepository.jsx index 08ef320b..cce28d6f 100644 --- a/src/repositories/TaskRepository.jsx +++ b/src/repositories/TaskRepository.jsx @@ -15,5 +15,11 @@ export const TasksRepository = { return api.get(url); }, reportTask: (data) => api.post("api/task/report", data), - taskComments: (data) => api.post("api/task/comment", data), + taskComments: ( data ) => api.post( "api/task/comment", data ), + + + auditTask: ( data ) => api.post( '/api/task/approve', data ) + + + };