결함대장 수정중

This commit is contained in:
leedj312
2025-07-03 20:22:19 +09:00
parent 6f263a185e
commit 2cc8d5209c
25 changed files with 606 additions and 225 deletions
+23
View File
@@ -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