Merge branch 'khj' into main

This commit is contained in:
khj0414 2025-01-17 15:52:24 +09:00
commit 81813a7d30

View File

@ -21,11 +21,7 @@ import java.nio.file.Paths;
import java.util.UUID; import java.util.UUID;
import org.springframework.beans.factory.annotation.Value; 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.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.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
@ -39,7 +35,7 @@ import lombok.extern.slf4j.Slf4j;
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/api/img") @RequestMapping("/api/quilleditor")
@RequiredArgsConstructor @RequiredArgsConstructor
public class ImageUploadController { public class ImageUploadController {
@ -47,9 +43,9 @@ public class ImageUploadController {
private String boardFilePath; private String boardFilePath;
/** /**
* 에디터 이미지 업로 * quilleditor 안에서 삽입된 이미지를 서버에 저장하는 메소
* @form-data file 업로드할 파일실제경로/파일이름 * @form-data 서버에 저장된 이미지 경로와 이름
* @return * @return
*/ */
@ParameterCheck @ParameterCheck
@PostMapping("/upload") @PostMapping("/upload")