Skip to content

Commit

Permalink
Move to authz createMonitorListRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
fkanout committed Dec 9, 2024
1 parent 9b6af1c commit 05b7121
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ export const createMonitorListRoute: UMRestApiRouteFactory = (libs) => ({
pageSize: schema.number(),
}),
},
options: {
tags: ['access:uptime-read'],
security: {
authz: {
requiredPrivileges: ['uptime-read'],
},
},
handler: async ({ uptimeEsClient, request, response }): Promise<any> => {
const { dateRangeStart, dateRangeEnd, filters, pagination, statusFilter, pageSize, query } =
Expand Down

0 comments on commit 05b7121

Please sign in to comment.