From fbd67b9bac9e08aa3c371a6fd0420b3ef45d8d88 Mon Sep 17 00:00:00 2001 From: Bill Smith Date: Tue, 15 Jan 2019 09:14:16 -0700 Subject: [PATCH] [SHIBUI-1030] Backed out at test endpoint I didn't mean to commit. --- .../admin/ui/controller/ConfigurationController.java | 11 ----------- 1 file changed, 11 deletions(-) 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(); - } }