list of admins

This commit is contained in:
hamid zarghami
2026-02-08 12:42:15 +03:30
parent 2667290193
commit cfcf132104
9 changed files with 373 additions and 236 deletions
+9
View File
@@ -0,0 +1,9 @@
import axios from "@/config/axios";
import type { AdminsType } from "../types/Types";
export const getAdmins = async (page: number) => {
const { data } = await axios.get<AdminsType>("/admin/admins", {
params: { page },
});
return data;
};