feat:add email send functionality
This commit is contained in:
11
frontend/src/api/appointment.ts
Normal file
11
frontend/src/api/appointment.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import apiClient from "@/api/client";
|
||||
|
||||
export const getAppointmentsApi = async () => {
|
||||
const res = await apiClient.get("/appointments/getall");
|
||||
return res.data;
|
||||
};
|
||||
|
||||
export const deleteAppointmentApi = async (id: number) => {
|
||||
const res = await apiClient.delete(`/appointments/${id}`);
|
||||
return res.data;
|
||||
};
|
||||
Reference in New Issue
Block a user