restaurants

This commit is contained in:
hamid zarghami
2025-12-31 08:53:07 +03:30
parent bc61ea6a20
commit cd73c22c3f
5 changed files with 37 additions and 9 deletions
+4 -1
View File
@@ -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`
);