restaurants
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
RestaurantSmsCountResponse,
|
||||
AddAdminRestaurantType,
|
||||
SystemRolesResponse,
|
||||
RestaurantAdminsResponse,
|
||||
} from "../types/Types";
|
||||
|
||||
export const getIcons = async (): Promise<IconsResponse> => {
|
||||
@@ -51,7 +52,9 @@ export const getRestaurants = async (): Promise<RestaurantsResponse> => {
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getRestaurantAdmins = async (restaurantId: string) => {
|
||||
export const getRestaurantAdmins = async (
|
||||
restaurantId: string
|
||||
): Promise<RestaurantAdminsResponse> => {
|
||||
const { data } = await axios.get(
|
||||
`/admin/dmenu/restaurants/${restaurantId}/admins`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user