backend-api #6
@@ -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");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user