แก้ 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";
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}`,
};