Skip to content
Snippets Groups Projects
Commit 17f8ed59 authored by 양서진's avatar 양서진
Browse files

controller 수정

parent 2eefbad3
Branches
No related tags found
No related merge requests found
Pipeline #8331 canceled
......@@ -66,16 +66,17 @@ public class MyWebController {
}
// // Get Favorite Music list from Database
// @GetMapping(value="/likes")
// public List<FavoriteMusic> getLikes() {
@GetMapping(value="/likes")
public List<FavoriteMusic> getLikes() {
// try {
// return albumsRepo.findAll();
try {
return albumsRepo.findAll();
// } catch (Exception e) {
// System.out.println(e.toString());
// return null;
// }
} catch (Exception e) {
System.out.println(e.toString());
return null;
}
}
@PostMapping(value="/likes")
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment