ปรับ Path API โครงสร้าง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-19 11:10:57 +07:00
parent 1440847a20
commit 9045f694f3

View file

@ -8,7 +8,7 @@ const orgEmployeePos = `${env.API_URI}/org/employee/pos`;
export default {
/** โครงสร้างอัตรากำลัง*/
activeOrganization: `${organization}/active`,
orgByid: (id: string) => `${organization}/${id}`,
orgByid: (id: string) => `${organization}/admin/${id}`,
createOrganization: `${organization}/draft`,
createOrgLevel: (type: string) => `${organization}/${type}`,
orgLevelByid: (type: string, id: string) => `${organization}/${type}/${id}`,
@ -27,7 +27,7 @@ export default {
orgPosLevel: `${orgPos}/level`,
orgPosMaster: `${orgPos}/master`,
orgPosMasterById: (id: string) => `${orgPos}/master/${id}`,
orgPosMasterList: `${orgPos}/master/list`,
orgPosMasterList: `${orgPos}/admin/master/list`,
orgPosSort: `${orgPos}/sort`,
orgPosMove: `${orgPos}/move`,
organizationShortName: `${organization}/sort`,