빗물이용시설 등록 수정 및 공통코드 api 추가

This commit is contained in:
leedj312
2025-03-25 17:36:17 +09:00
parent 27ea503260
commit 489be4ce19
7 changed files with 214 additions and 50 deletions
+4 -3
View File
@@ -1,11 +1,12 @@
//8880
import { DEV_URL_WR } from "../config/env";
import { DEV_URL_COMMON, DEV_URL_WR } from "../config/env";
export const getFectch = async (url: string) => {
const response = await fetch( DEV_URL_WR+url , {
export const getFectch = async( type:string , url: string) => {
const div = type === 'common' ? DEV_URL_COMMON : DEV_URL_WR
const response = await fetch( div+url , {
method: "GET",
headers: {
accept: "application/json",