Skip to content

Commit

Permalink
add access tag
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jan 25, 2023
1 parent 1bf8ba1 commit 6bfd5a5
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const registerBulkDeleteRoute = (router: IRouter) => {
router.post(
{
path: `${KBN_CLIENT_API_PREFIX}/_bulk_delete`,
options: {
tags: ['access:ftrApis'],
},
validate: {
body: schema.arrayOf(
schema.object({
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/ftr_apis/server/routes/kbn_client_so/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const registerCreateRoute = (router: IRouter) => {
router.post(
{
path: `${KBN_CLIENT_API_PREFIX}/{type}/{id?}`,
options: {
tags: ['access:ftrApis'],
},
validate: {
params: schema.object({
type: schema.string(),
Expand Down
5 changes: 4 additions & 1 deletion src/plugins/ftr_apis/server/routes/kbn_client_so/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const registerDeleteRoute = (router: IRouter) => {
router.delete(
{
path: `${KBN_CLIENT_API_PREFIX}/{type}/{id}`,
options: {
tags: ['access:ftrApis'],
},
validate: {
params: schema.object({
type: schema.string(),
Expand All @@ -32,4 +35,4 @@ export const registerDeleteRoute = (router: IRouter) => {
return res.ok({ body: result });
})
);
}
};
3 changes: 3 additions & 0 deletions src/plugins/ftr_apis/server/routes/kbn_client_so/find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const registerFindRoute = (router: IRouter) => {
router.get(
{
path: `${KBN_CLIENT_API_PREFIX}/_find`,
options: {
tags: ['access:ftrApis'],
},
validate: {
query: schema.object({
per_page: schema.number({ min: 0, defaultValue: 20 }),
Expand Down
5 changes: 4 additions & 1 deletion src/plugins/ftr_apis/server/routes/kbn_client_so/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const registerGetRoute = (router: IRouter) => {
router.get(
{
path: `${KBN_CLIENT_API_PREFIX}/{type}/{id}`,
options: {
tags: ['access:ftrApis'],
},
validate: {
params: schema.object({
type: schema.string(),
Expand All @@ -32,4 +35,4 @@ export const registerGetRoute = (router: IRouter) => {
return res.ok({ body: object });
})
);
}
};
3 changes: 3 additions & 0 deletions src/plugins/ftr_apis/server/routes/kbn_client_so/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const registerUpdateRoute = (router: IRouter) => {
router.put(
{
path: `${KBN_CLIENT_API_PREFIX}/{type}/{id}`,
options: {
tags: ['access:ftrApis'],
},
validate: {
params: schema.object({
type: schema.string(),
Expand Down

0 comments on commit 6bfd5a5

Please sign in to comment.