restaurant list + fix build
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user