แก้ path api
This commit is contained in:
parent
c8cdfb70d3
commit
19eaa5173e
1 changed files with 10 additions and 10 deletions
|
|
@ -3,21 +3,21 @@
|
|||
* เมนูย่อย: ปฏิทินวันหยุด
|
||||
*/
|
||||
import env from "../index";
|
||||
const holiday = `${env.API_URI}/metadata/holiday/`;
|
||||
const holiday = `${env.API_URI}/leave/metadata/holiday/`;
|
||||
|
||||
export default {
|
||||
/**
|
||||
* api ชั้นเครื่องราชฯ
|
||||
*/
|
||||
listHolidayHistoryAdd: (category: string) =>
|
||||
`${holiday}range/add/${category}`,
|
||||
listHolidayHistoryEdit: (category: string) =>
|
||||
`${holiday}range/edit/${category}`,
|
||||
listHolidayHistoryDelete: (category: string) =>
|
||||
`${holiday}range/delete/${category}`,
|
||||
listHolidayHistoryYear: (year: number) => `${holiday}${year}`,
|
||||
// listHolidayHistoryAdd: (category: string) =>
|
||||
// `${holiday}range/add/${category}`,
|
||||
// listHolidayHistoryEdit: (category: string) =>
|
||||
// `${holiday}range/edit/${category}`,
|
||||
// listHolidayHistoryDelete: (category: string) =>
|
||||
// `${holiday}range/delete/${category}`,
|
||||
// listHolidayHistoryYear: (year: number) => `${holiday}${year}`,
|
||||
listHolidayHistoryYearMonth: (year: number, month: number) =>
|
||||
`${holiday}${year}/${month}`,
|
||||
listHolidayCopy: `${holiday}copy`,
|
||||
summaryHolidayHistoryYear: (year: number) => `${holiday}summary/${year}`,
|
||||
// listHolidayCopy: `${holiday}copy`,
|
||||
// summaryHolidayHistoryYear: (year: number) => `${holiday}summary/${year}`,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue