From 6a110d799ecfc0a931beb7ad8621bcc0ce66d3cd Mon Sep 17 00:00:00 2001 From: khj0414 Date: Fri, 17 Jan 2025 15:52:03 +0900 Subject: [PATCH] =?UTF-8?q?=ED=80=BC=20=EA=B2=BD=EB=A1=9C=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/common/ImageUploadController.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main/java/io/company/localhost/controller/common/ImageUploadController.java b/src/main/java/io/company/localhost/controller/common/ImageUploadController.java index 2fa8a72..f722dce 100644 --- a/src/main/java/io/company/localhost/controller/common/ImageUploadController.java +++ b/src/main/java/io/company/localhost/controller/common/ImageUploadController.java @@ -21,11 +21,7 @@ import java.nio.file.Paths; import java.util.UUID; import org.springframework.beans.factory.annotation.Value; -import org.springframework.core.io.FileSystemResource; -import org.springframework.core.io.Resource; import org.springframework.http.HttpStatus; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; @@ -39,7 +35,7 @@ import lombok.extern.slf4j.Slf4j; @Slf4j @RestController -@RequestMapping("/api/img") +@RequestMapping("/api/quilleditor") @RequiredArgsConstructor public class ImageUploadController { @@ -47,9 +43,9 @@ public class ImageUploadController { private String boardFilePath; /** - * 에디터 내 이미지 업로드 - * @form-data file 업로드할 파일실제경로/파일이름 - * @return + * quilleditor 안에서 삽입된 이미지를 서버에 저장하는 메소드 + * @form-data 서버에 저장된 이미지 경로와 이름 + * @return */ @ParameterCheck @PostMapping("/upload")