refactor: 호출 API 컴포넌트에서 주석 제거

This commit is contained in:
swcho
2025-07-31 16:13:52 +09:00
parent 46015603c2
commit d6cab7b35c
-3
View File
@@ -41,8 +41,6 @@ export const postData = async (url: string, data: object): Promise<any> => {
body: JSON.stringify(data),
};
const res = await fetch(`${BASE_URL}/${url}`, options);
console.log('res', res);
console.log('res.status', res.status);
if (res.ok) {
const resData = await res.json();
return resData;
@@ -99,7 +97,6 @@ export const getDcData = async (url: string, data?: object): Promise<any> => {
// CMS API 호출
export const getCmsData = async (url: string, data?: object): Promise<any> => {
console.log(url);
const res = await fetch('/cms-service' + url, {
method: "GET",
});