change my-rest to my-shop
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-06-16 14:57:30 +03:30
parent da74ef6cd6
commit 9abb8a06b1
+2 -2
View File
@@ -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;
}; };