Skip to content

Commit

Permalink
refactor: user test check
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoya324 committed Oct 15, 2024
1 parent 31d98df commit d24008f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ public SecurityFilterChain filterChain(HttpSecurity http, HandlerMappingIntrospe
.permitAll()
.requestMatchers(new MvcRequestMatcher(introspector, API_PREFIX + "/auth/**"))
.permitAll()
.requestMatchers(new MvcRequestMatcher(introspector, API_PREFIX + "/users/check"))
.permitAll()
.requestMatchers(new MvcRequestMatcher(introspector, API_PREFIX + "/places/**"))
.hasRole("USER")
.requestMatchers(new MvcRequestMatcher(introspector, ADMIN_API_PREFIX + "/**"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class UserController implements UserAPIPresentation {

private final UserService userService;

@GetMapping
@GetMapping("/check")
public UserInfoResponse getUser(@LoginUser User user) {
return UserInfoResponse.of(user.getUsername(), user.getProfileImageUrl());
}
Expand Down

0 comments on commit d24008f

Please sign in to comment.