Implement caching
This commit is contained in:
@@ -26,10 +26,10 @@ public class PacketController {
|
||||
}
|
||||
|
||||
@PostMapping("/{streamId}")
|
||||
public List<Packet> getPacketsForStream(@PathVariable long streamId, @RequestBody Pagination pagination) {
|
||||
public List<Packet> getPacketsForStream(@PathVariable long streamId) {
|
||||
final Optional<Stream> stream = streamService.find(streamId);
|
||||
if(stream.isPresent()) {
|
||||
return packetService.getPacketsForStream(pagination, stream.get());
|
||||
return packetService.getPacketsForStream(stream.get());
|
||||
} else {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user