feat: add appointment date range filter

This commit is contained in:
Kailasdevdas
2026-05-13 14:20:51 +05:30
parent 988fbd28f1
commit 6889137164
3 changed files with 148 additions and 45 deletions
+4
View File
@@ -4,12 +4,16 @@ export const getAppointmentsApi = async (
page = 1,
limit = 10,
date = "",
startDate = "",
endDate = "",
search = "",
) => {
const params = new URLSearchParams({
page: String(page),
limit: String(limit),
...(date && { date }),
...(startDate && { startDate }),
...(endDate && { endDate }),
...(search && { search }),
});
const res = await apiClient.get(`/appointments/getall?${params}`);