Skip to content

Commit c4569a8

Browse files
committed
remove indexCount route
1 parent 24ea40c commit c4569a8

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

x-pack/legacy/plugins/maps/server/routes.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -409,26 +409,6 @@ export function initRoutes(server, licenseUid) {
409409
},
410410
});
411411

412-
server.route({
413-
method: 'GET',
414-
path: `${ROOT}/indexCount`,
415-
handler: async (request, h) => {
416-
const { server, query } = request;
417-
418-
if (!query.index) {
419-
return h.response().code(400);
420-
}
421-
422-
const { callWithRequest } = server.plugins.elasticsearch.getCluster('data');
423-
try {
424-
const { count } = await callWithRequest(request, 'count', { index: query.index });
425-
return { count };
426-
} catch (error) {
427-
return h.response().code(400);
428-
}
429-
},
430-
});
431-
432412
server.route({
433413
method: 'GET',
434414
path: `/${INDEX_SETTINGS_API_PATH}`,

0 commit comments

Comments
 (0)