Fix antMatcher path
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user