Skip to content

Commit

Permalink
[SHIBUI-1030]
Browse files Browse the repository at this point in the history
Backed out at test endpoint I didn't mean to commit.
  • Loading branch information
Bill Smith committed Jan 15, 2019
1 parent 318a24d commit fbd67b9
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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();
}
}

0 comments on commit fbd67b9

Please sign in to comment.