import { schema } from '@kbn/config-schema' ; import { RouteDependencies } from '../../plugin' ; export function registerApiLogsRoutes ( { router , enterpriseSearchRequestHandler , } ) { router . get ( { path : '/internal/app_search/engines/{engineName}/api_logs' , validate : { params : schema . object ( { engineName : schema . string ( ) , } ) , query : schema . object ( { 'filters[date][from]' : schema . string ( ) , 'filters[date][to]' : schema . string ( ) , 'page[current]' : schema . number ( ) , sort_direction : schema . string ( ) , } ) , } , } , enterpriseSearchRequestHandler . createRequest ( { path : '/as/engines/:engineName/api_logs/collection' , } ) ) ; }