Skip to content

Commit

Permalink
small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
hantsy committed Jan 23, 2018
1 parent e43a673 commit 5ad056f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public Flux<Post> all() {
@GetMapping("/search")
public Flux<Post> search(
@RequestParam() String q,
@RequestParam(name="page", defaultValue = "10") Integer page,
@RequestParam(name="page", defaultValue = "0") Integer page,
@RequestParam(name="size", defaultValue = "10") Integer size
) {
return this.posts.findByTitleLike(q, PageRequest.of(page, size));
Expand Down

0 comments on commit 5ad056f

Please sign in to comment.