빗물이용시설 등록 수정 및 공통코드 api 추가
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user