backend-api #6

Merged
piair merged 107 commits from backend-api into main 2025-03-26 19:04:09 +01:00
Showing only changes of commit 78c72bdd72 - Show all commits

View File

@ -10,7 +10,6 @@ import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.security.oauth2.jwt.Jwt; import org.springframework.security.oauth2.jwt.Jwt;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
@SpringBootApplication @SpringBootApplication
@ -84,8 +83,10 @@ public class SharedApi {
@PathVariable int appointmentId, @AuthenticationPrincipal Jwt principal) { @PathVariable int appointmentId, @AuthenticationPrincipal Jwt principal) {
try { try {
sharedApiService.getPDFReport(appointmentId, principal.getClaimAsString("email")); sharedApiService.getPDFReport(appointmentId, principal.getClaimAsString("email"));
} catch (FileNotFoundException | DocumentException e) { } catch (FileNotFoundException e) {
System.out.println(e); System.out.println(e + "File not found");
} catch (DocumentException e) {
System.out.println(e + "Document exception");
} }
} }