Skip to content
Snippets Groups Projects
Commit 3ef69e41 authored by Blersch Lara's avatar Blersch Lara
Browse files

update: WishList #7

parent 543ce921
No related branches found
No related tags found
1 merge request!14#7 backend of wishList
......@@ -27,6 +27,7 @@ public class WishListController {
@GetMapping("/api/v1/wishlist")
public Collection<Plant> getAllPlants() {
//TODO: get the user by adding (Authentication authentication) as params
return wishListService.getWishedPlants();
}
......
......@@ -21,7 +21,7 @@ public class WishListService {
private final WishListRepository wishListRepository;
public Collection<Plant> getWishedPlants() {
//todo: check for current user
//todo: check for current user?
return wishListRepository.findAll();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment