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