restaurant list + fix build

This commit is contained in:
hamid zarghami
2025-12-29 14:49:55 +03:30
parent fe07425d7e
commit 8bdd838ddc
12 changed files with 205 additions and 7 deletions
+6
View File
@@ -5,6 +5,7 @@ import {
GroupIconsResponse,
IconsResponse,
ReportsResponse,
RestaurantsResponse,
} from "../types/Types";
export const getIcons = async (): Promise<IconsResponse> => {
@@ -41,3 +42,8 @@ export const getReports = async (): Promise<ReportsResponse> => {
const { data } = await axios.get("/admin/dmenu/contacts");
return data;
};
export const getRestaurants = async (): Promise<RestaurantsResponse> => {
const { data } = await axios.get("/admin/dmenu/restaurants");
return data;
};