This commit is contained in:
@@ -2,11 +2,11 @@ import axios from "@/config/axios";
|
||||
import type { GetRestaurantResponse, UpdateRestaurantType } from "../types/Types";
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user