Skip to content

Commit

Permalink
eux-pdf-flattener
Browse files Browse the repository at this point in the history
  • Loading branch information
walberg committed Oct 21, 2024
1 parent 2767335 commit dd0aa54
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import io.github.oshai.kotlinlogging.KotlinLogging.logger
import no.nav.eux.pdf.openapi.api.PdfApi
import no.nav.eux.pdf.service.FlattenPdfService
import no.nav.security.token.support.core.api.Protected
import no.nav.security.token.support.core.api.Unprotected
import org.springframework.core.io.ByteArrayResource
import org.springframework.core.io.Resource
import org.springframework.http.ContentDisposition
Expand All @@ -21,7 +20,7 @@ class PdfApiImpl(
) : PdfApi {
val log = logger {}

@Unprotected
@Protected
override fun flattenPdf(file: Resource?): ResponseEntity<Resource> {
try {
val byteArrayResource = ByteArrayResource(pdfService.flattenPdf(file!!.contentAsByteArray))
Expand Down

0 comments on commit dd0aa54

Please sign in to comment.