Skip to content

Commit

Permalink
dev: clarify path variable values
Browse files Browse the repository at this point in the history
  • Loading branch information
ghkdqhrbals committed Mar 29, 2024
1 parent d19f4ce commit 045c181
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public String user(@ModelAttribute("userRegisterDto") UserRegisterDto userRegist
@GetMapping({"/users/{user_id}"})
@PreAuthorize("hasAnyRole('USER')")
public String getUser(
@PathVariable(required = false) String user_id, Model model) {
@PathVariable(value = "user_id", required = false) String user_id, Model model) {
User currentUser = userContext.getCurrentUser();
UserInfo userInfo = null;
if (user_id == null) {
Expand Down

0 comments on commit 045c181

Please sign in to comment.