Изменено кэширование

This commit is contained in:
serega6531
2019-11-24 01:50:15 +03:00
parent 389567b469
commit 56e84f6566
9 changed files with 39 additions and 48 deletions

View File

@@ -5,7 +5,7 @@ import org.springframework.web.bind.annotation.*;
import ru.serega6531.packmate.model.Pattern;
import ru.serega6531.packmate.service.PatternService;
import java.util.List;
import java.util.Collection;
@RestController
@RequestMapping("/api/pattern/")
@@ -19,7 +19,7 @@ public class PatternController {
}
@GetMapping
public List<Pattern> getPatterns() {
public Collection<Pattern> getPatterns() {
return service.findAll();
}