แก้ 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";
|
import env from "../index";
|
||||||
const holiday = `${env.API_URI}/metadata/holiday/`;
|
const holiday = `${env.API_URI}/leave/metadata/holiday/`;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
/**
|
/**
|
||||||
* api ชั้นเครื่องราชฯ
|
* api ชั้นเครื่องราชฯ
|
||||||
*/
|
*/
|
||||||
listHolidayHistoryAdd: (category: string) =>
|
// listHolidayHistoryAdd: (category: string) =>
|
||||||
`${holiday}range/add/${category}`,
|
// `${holiday}range/add/${category}`,
|
||||||
listHolidayHistoryEdit: (category: string) =>
|
// listHolidayHistoryEdit: (category: string) =>
|
||||||
`${holiday}range/edit/${category}`,
|
// `${holiday}range/edit/${category}`,
|
||||||
listHolidayHistoryDelete: (category: string) =>
|
// listHolidayHistoryDelete: (category: string) =>
|
||||||
`${holiday}range/delete/${category}`,
|
// `${holiday}range/delete/${category}`,
|
||||||
listHolidayHistoryYear: (year: number) => `${holiday}${year}`,
|
// listHolidayHistoryYear: (year: number) => `${holiday}${year}`,
|
||||||
listHolidayHistoryYearMonth: (year: number, month: number) =>
|
listHolidayHistoryYearMonth: (year: number, month: number) =>
|
||||||
`${holiday}${year}/${month}`,
|
`${holiday}${year}/${month}`,
|
||||||
listHolidayCopy: `${holiday}copy`,
|
// listHolidayCopy: `${holiday}copy`,
|
||||||
summaryHolidayHistoryYear: (year: number) => `${holiday}summary/${year}`,
|
// summaryHolidayHistoryYear: (year: number) => `${holiday}summary/${year}`,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue