This commit is contained in:
hamid zarghami
2025-12-29 14:32:07 +03:30
parent 782ceae3e5
commit fe07425d7e
7 changed files with 327 additions and 151 deletions
+7 -1
View File
@@ -4,7 +4,8 @@ import {
CreateIconType,
GroupIconsResponse,
IconsResponse,
} from "../icon/types/Types";
ReportsResponse,
} from "../types/Types";
export const getIcons = async (): Promise<IconsResponse> => {
const { data } = await axios.get("/admin/dmenu/icons");
@@ -35,3 +36,8 @@ export const deleteIcon = async (id: string) => {
const { data } = await axios.delete(`/admin/dmenu/icons/${id}`);
return data;
};
export const getReports = async (): Promise<ReportsResponse> => {
const { data } = await axios.get("/admin/dmenu/contacts");
return data;
};