Skip to content

Commit

Permalink
refactor: getShopList를 인증이 필요하지 않는 요청으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dooohun committed Nov 28, 2023
1 parent ec44861 commit ad2fc39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/shop/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MyShopListRes, MyShopInfoRes, MyShopParam } from 'model/shopInfo/myShopInfo';
import { MenuInfoRes } from 'model/shopInfo/menuCategory';
import { ShopListRes } from 'model/shopInfo/allShopInfo';
import { accessClient } from 'api';
import { accessClient, client } from 'api';
import { OwnerShop } from 'model/shopInfo/ownerShop';

export const getMyShopList = async () => {
Expand All @@ -20,7 +20,7 @@ export const getMenuInfoList = async (param: MyShopParam) => {
};

export const getShopList = async () => {
const { data } = await accessClient.get<ShopListRes>('/shops');
const { data } = await client.get<ShopListRes>('/shops');
return ShopListRes.parse(data);
};

Expand Down

0 comments on commit ad2fc39

Please sign in to comment.