Browse Source

created endpoint api

pull/2/head
wahyuun 1 year ago
parent
commit
75effca25f
  1. 52
      src/const/ApiConst.js

52
src/const/ApiConst.js

@ -117,7 +117,7 @@ export const TOKEN_ADW =
// export let BASE_OSPRO = "https://ospro-api.ospro.id"; // export let BASE_OSPRO = "https://ospro-api.ospro.id";
export let BASE_OSPRO = "https://adw-api.ospro.id"; export let BASE_OSPRO = "https://adw-api.ospro.id";
// export let BASE_OSPRO = "http://localhost:8444"; // export let BASE_OSPRO = "http://localhost:8444/adw-backend";
// export let BASE_OSPRO = "http://103.73.125.81:8444"; // ip public adw // export let BASE_OSPRO = "http://103.73.125.81:8444"; // ip public adw
export let BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`; export let BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`;
export let BASE_SIMPRO_LUMEN_IMAGE = `${BASE_OSPRO}/assets/image`; export let BASE_SIMPRO_LUMEN_IMAGE = `${BASE_OSPRO}/assets/image`;
@ -363,6 +363,55 @@ export const PROYEK_ADD = `${BASE_SIMPRO_LUMEN}/project/add`;
export const PROYEK_LIST = `${BASE_SIMPRO_LUMEN}/project/list`; export const PROYEK_LIST = `${BASE_SIMPRO_LUMEN}/project/list`;
export const PROYEK_SEARCH = `${BASE_SIMPRO_LUMEN}/project/search`; export const PROYEK_SEARCH = `${BASE_SIMPRO_LUMEN}/project/search`;
export const PROYEK_SEARCH_DETAIL = `${BASE_SIMPRO_LUMEN}/project/search`; export const PROYEK_SEARCH_DETAIL = `${BASE_SIMPRO_LUMEN}/project/search`;
// Checklist
export const PROJECT_CHECKLIST_ADD = `${BASE_SIMPRO_LUMEN}/project-checklists/add`;
export const PROJECT_CHECKLIST_SEARCH = `${BASE_SIMPRO_LUMEN}/project-checklists/search`;
export const PROJECT_CHECKLIST_EDIT = (id) => {
return `${BASE_SIMPRO_LUMEN}/project-checklists/update/${id}`;
};
export const PROJECT_CHECKLIST_DELETE = (id) => {
return `${BASE_SIMPRO_LUMEN}/project-checklists/delete/${id}`;
};
export const PROJECT_CHECKLIST_DELETE_BY_PROYEK = (id) => {
return `${BASE_SIMPRO_LUMEN}/project-checklists/delete-by-proyek/${id}`;
};
export const PROJECT_CHECKLIST_LIST = `${BASE_SIMPRO_LUMEN}/project-checklists/list`;
export const PROJECT_CHECKLIST_WHERE_CUSTOM = (where, id) => {
return `${BASE_SIMPRO_LUMEN}/project-checklists/${where}/${id}`;
};
// Issue
export const PROJECT_ISSUE_ADD = `${BASE_SIMPRO_LUMEN}/project-issues/add`;
export const PROJECT_ISSUE_SEARCH = `${BASE_SIMPRO_LUMEN}/project-issues/search`;
export const PROJECT_ISSUE_EDIT = (id) => {
return `${BASE_SIMPRO_LUMEN}/project-issues/update/${id}`;
};
export const PROJECT_ISSUE_DELETE = (id) => {
return `${BASE_SIMPRO_LUMEN}/project-issues/delete/${id}`;
};
export const PROJECT_ISSUE_DELETE_BY_PROYEK = (id) => {
return `${BASE_SIMPRO_LUMEN}/project-issues/delete-by-proyek/${id}`;
};
export const PROJECT_ISSUE_LIST = `${BASE_SIMPRO_LUMEN}/project-issues/list`;
export const PROJECT_ISSUE_WHERE_CUSTOM = (where, id) => {
return `${BASE_SIMPRO_LUMEN}/project-issues/${where}/${id}`;
};
// Potential Risk
export const PROJECT_RISK_ADD = `${BASE_SIMPRO_LUMEN}/project-risks/add`;
export const PROJECT_RISK_SEARCH = `${BASE_SIMPRO_LUMEN}/project-risks/search`;
export const PROJECT_RISK_EDIT = (id) => {
return `${BASE_SIMPRO_LUMEN}/project-risks/update/${id}`;
};
export const PROJECT_RISK_DELETE = (id) => {
return `${BASE_SIMPRO_LUMEN}/project-risks/delete/${id}`;
};
export const PROJECT_RISK_DELETE_BY_PROYEK = (id) => {
return `${BASE_SIMPRO_LUMEN}/project-risks/delete-by-proyek/${id}`;
};
export const PROJECT_RISK_LIST = `${BASE_SIMPRO_LUMEN}/project-risks/list`;
export const PROJECT_RISK_WHERE_CUSTOM = (where, id) => {
return `${BASE_SIMPRO_LUMEN}/project-risks/${where}/${id}`;
};
// export const PROYEK_SEARCH_BY_USER = (id) => { // export const PROYEK_SEARCH_BY_USER = (id) => {
// return `${BASE_SIMPRO_LUMEN}/project-by-customer/${id}`; // return `${BASE_SIMPRO_LUMEN}/project-by-customer/${id}`;
// }; // };
@ -608,6 +657,7 @@ export const CHECKLIST_K3_DELETE = (id) => {
export const CHECKLIST_K3_LIST = `${BASE_SIMPRO_LUMEN}/checklist-k3/list`; export const CHECKLIST_K3_LIST = `${BASE_SIMPRO_LUMEN}/checklist-k3/list`;
export const ASSIGN_HR_PROJECT_ADD = `${BASE_SIMPRO_LUMEN}/user-to-proyek/add`; export const ASSIGN_HR_PROJECT_ADD = `${BASE_SIMPRO_LUMEN}/user-to-proyek/add`;
export const ASSIGN_HR_PROJECT_ADD_MULTIPLE = `${BASE_SIMPRO_LUMEN}/user-to-proyek/add-multiple`;
export const ASSIGN_HR_PROJECT_SEARCH = `${BASE_SIMPRO_LUMEN}/user-to-proyek/search`; export const ASSIGN_HR_PROJECT_SEARCH = `${BASE_SIMPRO_LUMEN}/user-to-proyek/search`;
export const ASSIGN_HR_PROJECT_EDIT = (id) => { export const ASSIGN_HR_PROJECT_EDIT = (id) => {
return `${BASE_SIMPRO_LUMEN}/user-to-proyek/update/${id}`; return `${BASE_SIMPRO_LUMEN}/user-to-proyek/update/${id}`;

Loading…
Cancel
Save