Skip to content

Commit

Permalink
fix: default page limit to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceh121 committed Aug 7, 2023
1 parent 9d61881 commit 77ec256
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected void handleRead(RoutingContext ctx) {
// does a paginated read
// TODO single read with path params
final int offset = Integer.parseInt(ctx.request().getParam("page[offset]", "0"));
final int limit = Integer.parseInt(ctx.request().getParam("page[limit]", "100"));
final int limit = Integer.parseInt(ctx.request().getParam("page[limit]", "20"));

if (limit > 100) {
// TODO use actual error msgs
Expand Down

0 comments on commit 77ec256

Please sign in to comment.