Skip to content

Commit 9f97dba

Browse files
address review feedback
1 parent 9c48fdb commit 9f97dba

File tree

1 file changed

+4
-4
lines changed
  • x-pack/plugins/ingest_pipelines/server/routes/api

1 file changed

+4
-4
lines changed

x-pack/plugins/ingest_pipelines/server/routes/api/delete.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ import { API_BASE_PATH } from '../../../common/constants';
99
import { RouteDependencies } from '../../types';
1010

1111
const paramsSchema = schema.object({
12-
nameOrNames: schema.string(),
12+
names: schema.string(),
1313
});
1414

1515
export const registerDeleteRoute = ({ router, license }: RouteDependencies): void => {
1616
router.delete(
1717
{
18-
path: `${API_BASE_PATH}/{nameOrNames}`,
18+
path: `${API_BASE_PATH}/{names}`,
1919
validate: {
2020
params: paramsSchema,
2121
},
2222
},
2323
license.guardApiRoute(async (ctx, req, res) => {
2424
const { callAsCurrentUser } = ctx.core.elasticsearch.dataClient;
25-
const { nameOrNames } = req.params;
26-
const pipelineNames = nameOrNames.split(',');
25+
const { names } = req.params;
26+
const pipelineNames = names.split(',');
2727

2828
const response: { itemsDeleted: string[]; errors: any[] } = {
2929
itemsDeleted: [],

0 commit comments

Comments
 (0)