Skip to content

Commit

Permalink
update list types routes
Browse files Browse the repository at this point in the history
  • Loading branch information
adcoelho committed Dec 13, 2024
1 parent 79718f2 commit c71f24c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { ActionsRequestHandlerContext } from '../../../types';
import { BASE_ACTION_API_PATH } from '../../../../common';
import { ILicenseState } from '../../../lib';
import { verifyAccessAndContext } from '../../verify_access_and_context';
import { DEFAULT_ACTION_ROUTE_SECURITY } from '../../constants';

export const listTypesRoute = (
router: IRouter<ActionsRequestHandlerContext>,
Expand All @@ -25,7 +24,12 @@ export const listTypesRoute = (
router.get(
{
path: `${BASE_ACTION_API_PATH}/connector_types`,
security: DEFAULT_ACTION_ROUTE_SECURITY,
security: {
authz: {
enabled: false,
reason: 'This API does not require any Kibana feature privileges.',
},
},
options: {
access: 'public',
summary: `Get connector types`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { INTERNAL_BASE_ACTION_API_PATH } from '../../../../common';
import { ILicenseState } from '../../../lib';
import { verifyAccessAndContext } from '../../verify_access_and_context';
import { transformListTypesResponseV1 } from '../list_types/transforms';
import { DEFAULT_ACTION_ROUTE_SECURITY } from '../../constants';

export const listTypesWithSystemRoute = (
router: IRouter<ActionsRequestHandlerContext>,
Expand All @@ -25,7 +24,12 @@ export const listTypesWithSystemRoute = (
router.get(
{
path: `${INTERNAL_BASE_ACTION_API_PATH}/connector_types`,
security: DEFAULT_ACTION_ROUTE_SECURITY,
security: {
authz: {
enabled: false,
reason: 'This internal API does not require any Kibana feature privileges.',
},
},
validate: {
query: connectorTypesQuerySchemaV1,
},
Expand Down

0 comments on commit c71f24c

Please sign in to comment.