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 }