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