Skip to content

Commit

Permalink
feat: pdf 반환을 위한 content-type 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Youthhing committed Sep 6, 2024
1 parent 3150d62 commit 4b72310
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public ResponseEntity<PostDetailResponse> getPostDetail(@PathVariable("id") Long
}

@Operation(summary = "HTML 코드를 PDF 파일로 변환하는 API")
@PostMapping("/pdf")
@PostMapping(value = "/pdf", consumes = MediaType.TEXT_HTML_VALUE)
public ResponseEntity<InputStreamResource> generatePdf(@RequestBody String htmlContent)
throws IOException, InterruptedException {
// PDF 파일 생성
Expand Down

0 comments on commit 4b72310

Please sign in to comment.