Fix antMatcher path
This commit is contained in:
@@ -49,7 +49,7 @@ public class SecurityConfig {
|
||||
"/auth/signUp",
|
||||
"/user/userList",
|
||||
"/auth/signIn*",
|
||||
"/user/profile/user/*",
|
||||
"/user/profile/view/**",
|
||||
"/favicon.ico"
|
||||
).permitAll()
|
||||
.anyRequest().authenticated();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user