This commit is contained in:
@@ -2,11 +2,11 @@ import axios from "@/config/axios";
|
|||||||
import type { GetRestaurantResponse, UpdateRestaurantType } from "../types/Types";
|
import type { GetRestaurantResponse, UpdateRestaurantType } from "../types/Types";
|
||||||
|
|
||||||
export const getRestaurant = async (): Promise<GetRestaurantResponse> => {
|
export const getRestaurant = async (): Promise<GetRestaurantResponse> => {
|
||||||
const { data } = await axios.get<GetRestaurantResponse>("/admin/shops/my-restaurant");
|
const { data } = await axios.get<GetRestaurantResponse>("/admin/shops/my-shop");
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const updateRestaurant = async (params: UpdateRestaurantType) => {
|
export const updateRestaurant = async (params: UpdateRestaurantType) => {
|
||||||
const { data } = await axios.patch("/admin/shops/my-restaurant", params);
|
const { data } = await axios.patch("/admin/shops/my-shop", params);
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user