Skip to content

Commit

Permalink
add two more
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Dec 23, 2024
1 parent a584c23 commit 9c6363f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ export function registerListFieldsRoute({
router.post(
{
path: '/api/watcher/fields',
security: {
authz: {
enabled: false,
reason: 'Relies on es client for authorization',
},
},
validate: {
body: bodySchema,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ export const register = ({ router, getLicenseStatus, log }: RouteDependencies) =
router.post(
{
path: `${API_BASE_PATH}/profile`,
security: {
authz: {
enabled: false,
reason: 'Relies on es client for authorization',
},
},
validate: {
body: schema.object({
query: schema.object({}, { unknowns: 'allow' }),
Expand Down Expand Up @@ -72,6 +78,12 @@ export const register = ({ router, getLicenseStatus, log }: RouteDependencies) =
router.get(
{
path: `${API_BASE_PATH}/has_indices`,
security: {
authz: {
enabled: false,
reason: 'Relies on es client for authorization',
},
},
validate: false,
},
async (ctx, _request, response) => {
Expand Down

0 comments on commit 9c6363f

Please sign in to comment.