From 5afd5b881ce48148cee4c5b7ac4fe565d0391408 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Wed, 21 Aug 2024 10:43:44 +0900 Subject: [PATCH] =?UTF-8?q?api=20=EC=A3=BC=EC=86=8C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/[locale]/roof2/RoofSelect.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/[locale]/roof2/RoofSelect.jsx b/src/app/[locale]/roof2/RoofSelect.jsx index 4693a881..25b9e04c 100644 --- a/src/app/[locale]/roof2/RoofSelect.jsx +++ b/src/app/[locale]/roof2/RoofSelect.jsx @@ -18,7 +18,7 @@ export default function RoofSelect() { const { get } = useAxios() useEffect(() => { - get({ url: '/api/roof-material/v1.0/roof-materials' }).then((res) => { + get({ url: '/api/roof-material/roof-material-infos' }).then((res) => { if (res.length === 0) { return } @@ -31,7 +31,7 @@ export default function RoofSelect() { return } - get({ url: `/api/trestle/v1.0/trestles/${roofMaterialId}` }).then((res) => { + get({ url: `/api/roof-material/roof-material-infos/${roofMaterialId}/trestles` }).then((res) => { if (res.length === 0) { return } @@ -61,8 +61,7 @@ export default function RoofSelect() { if (!trestleId) { return } - console.log(roofMaterialId, trestleId) - get({ url: `/api/module/v1.0/modules/${roofMaterialId}/${trestleId}` }).then((res) => { + get({ url: `/api/module/module-infos?roofMaterialId=${roofMaterialId}&trestleId=${trestleId}` }).then((res) => { if (res.length === 0) { return }