diff --git a/backend/src/main/java/edu/internet2/tier/shibboleth/admin/ui/controller/ConfigurationController.java b/backend/src/main/java/edu/internet2/tier/shibboleth/admin/ui/controller/ConfigurationController.java index 313bee981..95fb120ec 100644 --- a/backend/src/main/java/edu/internet2/tier/shibboleth/admin/ui/controller/ConfigurationController.java +++ b/backend/src/main/java/edu/internet2/tier/shibboleth/admin/ui/controller/ConfigurationController.java @@ -30,11 +30,6 @@ public class ConfigurationController { @Autowired EmailService emailService; - @ExceptionHandler(MessagingException.class) - public ResponseEntity handleMessagingExcepgtion() { - return ResponseEntity.badRequest().body(new ErrorResponse("12345", "Something exploded.")); - } - @GetMapping(value = "/customAttributes") public ResponseEntity getCustomAttributes() { return ResponseEntity.ok(customPropertiesConfiguration.getAttributes()); @@ -44,10 +39,4 @@ public ResponseEntity getCustomAttributes() { public ResponseEntity getSupportedRoles() { return ResponseEntity.ok(roleRepository.findAll().stream().map(Role::getName).collect(Collectors.toList())); } - - @GetMapping(value = "/foo") - public ResponseEntity getFoo() throws MessagingException { - emailService.sendNewUserMail("foobar"); - return ResponseEntity.ok().build(); - } }