Changes in ProjectRepository api for getProjectInfraByProject
This commit is contained in:
parent
3693af3d00
commit
6928bbd309
@ -18,7 +18,7 @@ const ProjectRepository = {
|
||||
}
|
||||
|
||||
return api.get(url);
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
getEmployeesByProject: (projectId) =>
|
||||
@ -43,12 +43,13 @@ const ProjectRepository = {
|
||||
projectNameList: () => api.get("/api/project/list/basic"),
|
||||
|
||||
getProjectDetails: (id) => api.get(`/api/project/details/${id}`),
|
||||
|
||||
getProjectInfraByproject: (projectId, serviceId) => {
|
||||
let url = `/api/project/infra-details/${projectId}`;
|
||||
|
||||
if (serviceId) {
|
||||
url + `?serviceId=${serviceId}`;
|
||||
url = `${url}?serviceId=${serviceId}`;
|
||||
}
|
||||
|
||||
return api.get(url);
|
||||
},
|
||||
getProjectTasksByWorkArea: (workAreaId, serviceId) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user