|
@@ -40,11 +40,11 @@ public class VideoController {
|
|
videos = vs.findAll();
|
|
videos = vs.findAll();
|
|
}
|
|
}
|
|
else if(title.isPresent()) {
|
|
else if(title.isPresent()) {
|
|
- LOGGER.debug("Get all videos");
|
|
|
|
|
|
+ LOGGER.debug("Get videos by title");
|
|
videos = vs.findByTitle(title.get());
|
|
videos = vs.findByTitle(title.get());
|
|
}
|
|
}
|
|
else if(userId.isPresent()) {
|
|
else if(userId.isPresent()) {
|
|
- LOGGER.debug("Get all videos");
|
|
|
|
|
|
+ LOGGER.debug("Get videos by user");
|
|
videos = vs.findByUserId(userId.get());
|
|
videos = vs.findByUserId(userId.get());
|
|
}
|
|
}
|
|
|
|
|