fix: แก้ path api
This commit is contained in:
parent
0c0dffe34b
commit
d3d95718c9
2 changed files with 14 additions and 12 deletions
|
|
@ -5,13 +5,14 @@ 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`,
|
||||
msgInbox: `${message}/my-inboxes`,
|
||||
msgId: (id: string) => `${message}/my-notifications/${id}`,
|
||||
msgNoread: () => `${message}/my-notifications/noread`,
|
||||
msgInboxDelete: (id: string) => `${message}/my-inboxes/${id}`,
|
||||
msgNotificate: `${placementMessage}/my-notifications`,
|
||||
msgInbox: `${placementMessage}/my-inboxes`,
|
||||
msgId: (id: string) => `${placementMessage}/my-notifications/${id}`,
|
||||
msgNoread: () => `${placementMessage}/my-notifications/noread`,
|
||||
msgInboxDelete: (id: string) => `${placementMessage}/my-inboxes/${id}`,
|
||||
|
||||
replyMessage: (id: string) => `${reply}/${id}`,
|
||||
msgNotiAdmin: `${env.API_URI}/org/profile/noti-admin`,
|
||||
|
|
|
|||
|
|
@ -4,20 +4,21 @@
|
|||
*/
|
||||
import env from "../index";
|
||||
const holiday = `${env.API_URI}/metadata/holiday/`;
|
||||
const leaveHoliday = `${env.API_URI}/leave/metadata/holiday/`;
|
||||
|
||||
export default {
|
||||
/**
|
||||
* api ชั้นเครื่องราชฯ
|
||||
*/
|
||||
listHolidayHistoryAdd: (category: string) =>
|
||||
`${holiday}range/add/${category}`,
|
||||
`${leaveHoliday}range/add/${category}`,
|
||||
listHolidayHistoryEdit: (category: string) =>
|
||||
`${holiday}range/edit/${category}`,
|
||||
`${leaveHoliday}range/edit/${category}`,
|
||||
listHolidayHistoryDelete: (category: string) =>
|
||||
`${holiday}range/delete/${category}`,
|
||||
listHolidayHistoryYear: (year: number) => `${holiday}${year}`,
|
||||
`${leaveHoliday}range/delete/${category}`,
|
||||
listHolidayHistoryYear: (year: number) => `${leaveHoliday}${year}`,
|
||||
listHolidayHistoryYearMonth: (year: number, month: number) =>
|
||||
`${holiday}${year}/${month}`,
|
||||
listHolidayCopy: `${holiday}copy`,
|
||||
summaryHolidayHistoryYear: (year: number) => `${holiday}summary/${year}`,
|
||||
`${leaveHoliday}${year}/${month}`,
|
||||
listHolidayCopy: `${leaveHoliday}copy`,
|
||||
summaryHolidayHistoryYear: (year: number) => `${leaveHoliday}summary/${year}`,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue