contact
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user