File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
x-pack/legacy/plugins/maps/server Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff 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 } ` ,
You can’t perform that action at this time.
0 commit comments