diff --git a/src/api/registry/api.registry.ts b/src/api/registry/api.registry.ts index 8647a7385..b3c917ffd 100644 --- a/src/api/registry/api.registry.ts +++ b/src/api/registry/api.registry.ts @@ -1,11 +1,26 @@ import env from "../index"; const registryNew = `${env.API_URI}/org/profile/`; +const metadata = `${env.API_URI}/org/metadata/`; export default { registryNew, registryNewByProfileId: (profileId: string) => `${registryNew}${profileId}`, + // metadata + profileNewGender: `${metadata}gender`, + profileNewReligion: `${metadata}religion`, + profileNewRelationship: `${metadata}relationship`, + profileNewBloodGroup: `${metadata}bloodGroup`, + + // ประวัติส่วนตัว + profileNewProfileByProfileId: (profileId: string) => + `${registryNew}${profileId}`, + profileNewProfileById: (dataId: string) => + `${registryNew}${dataId}`, + profileNewProfileHisById: (dataId: string) => + `${registryNew}history/${dataId}`, + // บันทึกวันที่ไม่ได้รับเงินเดือนฯ profileNewNoPaid: `${registryNew}nopaid`, profileNewNoPaidByProfileId: (profileId: string) => diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue index 18a575e3d..659d5180a 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue @@ -1,5 +1,6 @@