import { schema } from '@kbn/config-schema' ; import { RouteDependencies } from '../../plugin' ; export function registerSettingsRoutes ( { router , enterpriseSearchRequestHandler , } ) { router . get ( { path : '/internal/app_search/log_settings' , validate : false , } , enterpriseSearchRequestHandler . createRequest ( { path : '/as/log_settings' , } ) ) ; router . put ( { path : '/internal/app_search/log_settings' , validate : { body : schema . object ( { api : schema . maybe ( schema . object ( { enabled : schema . boolean ( ) , } ) ) , analytics : schema . maybe ( schema . object ( { enabled : schema . boolean ( ) , } ) ) , crawler : schema . maybe ( schema . object ( { enabled : schema . boolean ( ) , } ) ) , } ) , } , } , enterpriseSearchRequestHandler . createRequest ( { path : '/as/log_settings' , } ) ) ; }