fix: แก้ path api
This commit is contained in:
parent
5969c62363
commit
6a5abd818f
2 changed files with 10 additions and 6 deletions
|
|
@ -2,12 +2,13 @@ import env from "./index";
|
|||
|
||||
const message = `${env.API_URI}/message`;
|
||||
const reply = `${env.API_URI}/placement/noti`;
|
||||
const placementMessage = `${env.API_URI}/placement/message`;
|
||||
|
||||
export default {
|
||||
msgNotificate: `${message}/my-notifications`,
|
||||
msgNotificateTotal: `${message}/my-notifications/noread`,
|
||||
msgInbox: `${message}/my-inboxes`,
|
||||
msgId: (id: string) => `${message}/my-notifications/${id}`,
|
||||
msgNotificate: `${placementMessage}/my-notifications`,
|
||||
msgNotificateTotal: `${placementMessage}/my-notifications/noread`,
|
||||
msgInbox: `${placementMessage}/my-inboxes`,
|
||||
msgId: (id: string) => `${placementMessage}/my-notifications/${id}`,
|
||||
replyMessage: (id: string) => `${reply}/${id}`,
|
||||
msgInboxRead: (id: string) => `${message}/my-inboxes/${id}`,
|
||||
msgInboxRead: (id: string) => `${placementMessage}/my-inboxes/${id}`,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import env from "../index";
|
|||
const retirementResign = `${env.API_URI}/retirement`;
|
||||
const leave = `${env.API_URI}/leave`;
|
||||
const holiday = `${env.API_URI}/metadata/holiday/`;
|
||||
const leaveHoliday = `${env.API_URI}/leave/metadata/holiday/`;
|
||||
|
||||
export default {
|
||||
listUser: () => `${retirementResign}/resign/user`,
|
||||
|
|
@ -39,5 +40,7 @@ export default {
|
|||
`${leave}/user/file/document/${id}/${docId}`,
|
||||
|
||||
listHolidayHistoryYearMonth: (year: number, month: number) =>
|
||||
`${holiday}${year}/${month}`,
|
||||
`${leaveHoliday}${year}/${month}`,
|
||||
|
||||
leaveTest: () => `${env.API_URI}/leave/report/download/time-records/officer`
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue