import { schema } from '@kbn/config-schema' ; import { skipBodyValidation } from '../../lib/route_config_helpers' ; import { RouteDependencies } from '../../plugin' ; export function registerSearchSettingsRoutes ( { router , enterpriseSearchRequestHandler , } ) { router . get ( { path : '/internal/app_search/engines/{engineName}/search_settings/details' , validate : { params : schema . object ( { engineName : schema . string ( ) , } ) , } , } , enterpriseSearchRequestHandler . createRequest ( { path : '/as/engines/:engineName/search_settings/details' , } ) ) ; router . post ( { path : '/internal/app_search/engines/{engineName}/search_settings/reset' , validate : { params : schema . object ( { engineName : schema . string ( ) , } ) , } , } , enterpriseSearchRequestHandler . createRequest ( { path : '/as/engines/:engineName/search_settings/reset' , } ) ) ; router . put ( skipBodyValidation ( { path : '/internal/app_search/engines/{engineName}/search_settings' , validate : { params : schema . object ( { engineName : schema . string ( ) , } ) , } , } ) , enterpriseSearchRequestHandler . createRequest ( { path : '/as/engines/:engineName/search_settings' , } ) ) ; }