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