14 lines
405 B
TypeScript
14 lines
405 B
TypeScript
/**
|
|
* API Structure + Org Chart
|
|
*/
|
|
import env from "../index"
|
|
|
|
const treeRoot = `${env.API_URI}/Organization/treeroot`
|
|
const structChart = `${env.API_URI}/Organization/struct-chart/`
|
|
const orgChart = `${env.API_URI}/Organization/org-chart/`
|
|
|
|
export default {
|
|
chartGetTreeRoot: `${treeRoot}`,
|
|
chartGetStructure: (id: string) => `${structChart}${id}`,
|
|
chartGetOrg: (id: string) => `${orgChart}${id}`
|
|
}
|