diff --git a/src/views/akopolio/Edit/edit.js b/src/views/akopolio/Edit/edit.js index 308ebb3..dd08647 100644 --- a/src/views/akopolio/Edit/edit.js +++ b/src/views/akopolio/Edit/edit.js @@ -141,12 +141,13 @@ export default { images.value.splice(index, 1); }; + const prefix = 'images'; const uploadImages = async () => { const uploadedUrls = []; for (const image of images.value) { try { const { data } = await axios.post( - `${process.env.VUE_APP_BE_API_URL}/api/get-presigned-url`, + `${process.env.VUE_APP_BE_API_URL}/file/${prefix}/presigned-url`, { fileName: image.name, fileType: image.file.type, diff --git a/src/views/akopolio/create/create.js b/src/views/akopolio/create/create.js index 53b8618..1897d31 100644 --- a/src/views/akopolio/create/create.js +++ b/src/views/akopolio/create/create.js @@ -119,6 +119,7 @@ export default { this.images.splice(index, 1); }, async uploadImages() { + const prefix = 'images'; const uploadedUrls = []; for (const image of this.images) { @@ -126,7 +127,7 @@ export default { // 1. 프리사인드 URL 요청 const { data } = await axios.post( - `${process.env.VUE_APP_BE_API_URL}/api/get-presigned-url`, + `${process.env.VUE_APP_BE_API_URL}/file/${prefix}/presigned-url`, { fileName: image.name, fileType: image.type,