Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpeihl committed Nov 27, 2024
1 parent 952cafb commit abfffa8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/plugins/dashboard/server/api/register_routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,19 @@ export function registerAPIRoutes({
request: {
query: schema.object({
page: schema.number({
meta: { description: 'The page number to return.' },
meta: { description: 'The page number to return. Default is "1".' },
min: 1,
defaultValue: 1,
}),
perPage: schema.maybe(
schema.number({
meta: { description: 'The number of dashboards to display on each page.' },
meta: {
description:
'The number of dashboards to display on each page (max 1000). Default is "20".',
},
defaultValue: 20,
min: 1,
max: 1000,
})
),
}),
Expand Down

0 comments on commit abfffa8

Please sign in to comment.