결함대장 수정중
This commit is contained in:
@@ -46,6 +46,29 @@ export const getFetch = async (type: string, url: string) => {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
export const getCountFetch = async (type: string, url: string) => {
|
||||
const div =
|
||||
type === fetchType.COMMON
|
||||
? DEV_URL_FO
|
||||
: type === fetchType.LOCAL
|
||||
? LOCAL_URL
|
||||
: type === fetchType.CS
|
||||
? ''
|
||||
: DEV_URL_WR;
|
||||
|
||||
const response = await fetch(div + url, {
|
||||
method: "GET",
|
||||
headers: {
|
||||
accept: "application/json",
|
||||
},
|
||||
});
|
||||
// JSON 응답 처리
|
||||
const res = await response.json();
|
||||
return res;
|
||||
|
||||
};
|
||||
|
||||
export const getFetchWithCount = async (type: string, url: string) => {
|
||||
const div =
|
||||
type === fetchType.COMMON
|
||||
|
||||
Reference in New Issue
Block a user