feat: implement sorting and visibility changes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import apiClient from "@/api/client";
|
||||
|
||||
export const getCareersApi = async () => {
|
||||
const res = await apiClient.get("/careers/getAll");
|
||||
const res = await apiClient.get("/careers/getAll?admin=true");
|
||||
return res.data;
|
||||
};
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ export interface Department {
|
||||
}
|
||||
|
||||
export const getDepartmentsApi = async () => {
|
||||
const res = await apiClient.get("/departments/getAll");
|
||||
const res = await apiClient.get("/departments/getAll?admin=true");
|
||||
return res.data;
|
||||
};
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export interface Doctor {
|
||||
}
|
||||
|
||||
export const getDoctorsApi = async () => {
|
||||
const res = await apiClient.get("/doctors/getAll");
|
||||
const res = await apiClient.get("/doctors/getAll?admin=true");
|
||||
return res.data;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user