diff --git a/src/apis/resident.js b/src/apis/resident.js index 69553b0..e174879 100644 --- a/src/apis/resident.js +++ b/src/apis/resident.js @@ -4,7 +4,7 @@ import axios from 'utils/axios'; import { - GET_RESIDENT, + GET_RESIDENT_DATA, GET_RESIDENT_DATA_LIST, GET_RESIDENT_JUDGE_TARGET_LIST, GET_RESIDENT_LIST, @@ -33,7 +33,7 @@ export async function saveResidentData(formData) { } export async function findResident(scCode) { - const res = await axios.get(GET_RESIDENT + scCode); + const res = await axios.get(GET_RESIDENT_DATA + scCode); if (res.success) { return res; } diff --git a/src/commons/ApiUrl.js b/src/commons/ApiUrl.js index 6bf0ec9..0507318 100644 --- a/src/commons/ApiUrl.js +++ b/src/commons/ApiUrl.js @@ -20,19 +20,19 @@ export const GET_PARKING_JUDGE_TARGET_LIST = '/api/v1/ctgy/parking/target'; export const SAVE_PARKING_JUDGE_TARGET_LIST = '/api/v1/ctgy/parking/target'; // export const GET_PARKING_DETAILS_LIST = '/api/v1/ctgy/parking/details'; -// 거주자 의견 진술 -export const GET_RESIDENT_DATA_LIST = '/api/v1/ctgy/resident/data'; -export const SAVE_RESIDENT_DATA = '/api/v1/ctgy/resident/data'; -export const GET_RESIDENT = '/api/v1/ctgy/resident/'; -export const GET_RESIDENT_LIST = '/api/v1/ctgy/resident'; -export const GET_RESIDENT_JUDGE_TARGET_LIST = '/api/v1/ctgy/resident/target'; -export const SAVE_RESIDENT_JUDGE_TARGET_LIST = '/api/v1/ctgy/resident/target'; +// 거주자/장애인 의견 진술 +export const GET_RESIDENT_DATA_LIST = '/api/v1/ctgy/judge/data'; +export const SAVE_RESIDENT_DATA = '/api/v1/ctgy/judge/data'; +export const GET_RESIDENT_DATA = '/api/v1/ctgy/judge/data/'; +export const GET_RESIDENT_LIST = '/api/v1/ctgy/judge'; +export const GET_RESIDENT_JUDGE_TARGET_LIST = '/api/v1/ctgy/judge/target'; +export const SAVE_RESIDENT_JUDGE_TARGET_LIST = '/api/v1/ctgy/judge/target'; // 장애인 의견 진술 -export const GET_DISABLED_DATA_LIST = '/api/v1/ctgy/resident/data'; -export const SAVE_DISABLED_DATA = '/api/v1/ctgy/resident/data'; -export const GET_DISABLED = '/api/v1/ctgy/resident/'; -export const GET_DISABLED_LIST = '/api/v1/ctgy/resident'; +export const GET_DISABLED_DATA_LIST = '/api/v1/ctgy/judge/data'; +export const SAVE_DISABLED_DATA = '/api/v1/ctgy/judge/data'; +export const GET_DISABLED = '/api/v1/ctgy/judge/data/'; +export const GET_DISABLED_LIST = '/api/v1/ctgy/judge'; // 사용자 관리 export const GET_USER_BOARD_LIST = '/api/v1/ctgy/pboard/';