Skip to content

Commit a171cf3

Browse files
authored
chore: fix wrong code on README.md
1 parent b1a670a commit a171cf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ public class UserController {
159159
Optional<User> user = userService.findByEmail(email);
160160

161161
if (user.isPresent()) {
162-
return Response.json(Map.of("user", user.get()));
162+
return Response.json(JSON.of("user", user.get()));
163163
} else {
164-
return Response.json(Map.of("error", "User not found")).status(404);
164+
return Response.json(JSON.of("error", "User not found")).status(404);
165165
}
166166
}
167167
}
@@ -368,4 +368,4 @@ No contribution is too small, and we're happy to help newcomers get started!
368368

369369
## License
370370

371-
MIT License
371+
MIT License

0 commit comments

Comments
 (0)