Skip to content

Commit

Permalink
Edit to Request Body
Browse files Browse the repository at this point in the history
  • Loading branch information
Youthhing committed Sep 7, 2024
1 parent e28f4cd commit 04a4cba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ResponseEntity<PostDetailResponse> getPostDetail(@PathVariable("id") Long
@Operation(summary = "HTML 코드를 PDF 파일로 변환하는 API")
@CrossOrigin(origins = {"http://localhost:3000", "https://www.chatppt.site", "https://chatppt.site"})
@PostMapping(value = "/pdf", consumes = {MediaType.TEXT_HTML_VALUE, MediaType.TEXT_PLAIN_VALUE})
public ResponseEntity<InputStreamResource> generatePdf(@ModelAttribute String htmlContent)
public ResponseEntity<InputStreamResource> generatePdf(@RequestBody String htmlContent)
throws IOException, InterruptedException {
// PDF 파일 생성
String outputPdfPath = UUID.randomUUID() + ".pdf";
Expand Down

0 comments on commit 04a4cba

Please sign in to comment.