api 주소 변경

This commit is contained in:
hyojun.choi 2024-08-21 10:43:44 +09:00
parent 85e5e49327
commit 5afd5b881c

View File

@ -18,7 +18,7 @@ export default function RoofSelect() {
const { get } = useAxios() const { get } = useAxios()
useEffect(() => { 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) { if (res.length === 0) {
return return
} }
@ -31,7 +31,7 @@ export default function RoofSelect() {
return 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) { if (res.length === 0) {
return return
} }
@ -61,8 +61,7 @@ export default function RoofSelect() {
if (!trestleId) { if (!trestleId) {
return return
} }
console.log(roofMaterialId, trestleId) get({ url: `/api/module/module-infos?roofMaterialId=${roofMaterialId}&trestleId=${trestleId}` }).then((res) => {
get({ url: `/api/module/v1.0/modules/${roofMaterialId}/${trestleId}` }).then((res) => {
if (res.length === 0) { if (res.length === 0) {
return return
} }