Fix antMatcher path

This commit is contained in:
hou27
2022-06-16 23:08:29 +09:00
parent 943b8bc7ff
commit 38b8ec824b
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ public class SecurityConfig {
"/auth/signUp", "/auth/signUp",
"/user/userList", "/user/userList",
"/auth/signIn*", "/auth/signIn*",
"/user/profile/user/*", "/user/profile/view/**",
"/favicon.ico" "/favicon.ico"
).permitAll() ).permitAll()
.anyRequest().authenticated(); .anyRequest().authenticated();

View File

@@ -36,7 +36,7 @@ public class UserController {
.build(); .build();
} }
@GetMapping("/profile/user/{username}") @GetMapping("/profile/view/{username}")
public ProfileRes userProfile(@PathVariable String username) throws UserNotFoundException { public ProfileRes userProfile(@PathVariable String username) throws UserNotFoundException {
User user = userService.findByName(username) User user = userService.findByName(username)
.orElseThrow(UserNotFoundException::new); .orElseThrow(UserNotFoundException::new);