퀼 경로수정
This commit is contained in:
parent
7a075c4d5d
commit
6a110d799e
@ -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")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user