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",
"/user/userList",
"/auth/signIn*",
"/user/profile/user/*",
"/user/profile/view/**",
"/favicon.ico"
).permitAll()
.anyRequest().authenticated();

View File

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