แก้ path api

This commit is contained in:
Warunee Tamkoo 2025-12-08 12:18:03 +07:00
parent c8cdfb70d3
commit 19eaa5173e

View file

@ -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}`,
}; };