refactor: Fix some code smells #26
@ -19,7 +19,7 @@ public class WelcomeController {
|
||||
}
|
||||
|
||||
@GetMapping("/roles")
|
||||
public ResponseEntity<Collection<? extends GrantedAuthority>> getRoles(Authentication authentication) {
|
||||
public ResponseEntity getRoles(Authentication authentication) {
|
||||
return ResponseEntity.ok(authentication.getAuthorities());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user