import { schema } from '@kbn/config-schema' ; import { RouteDependencies } from '../../plugin' ; export function registerOnboardingRoutes ( { router , enterpriseSearchRequestHandler , } ) { router . post ( { path : '/internal/app_search/onboarding_complete' , validate : { body : schema . object ( { seed_sample_engine : schema . maybe ( schema . boolean ( ) ) , } ) , } , } , enterpriseSearchRequestHandler . createRequest ( { path : '/as/onboarding/complete' , hasJsonResponse : false , } ) ) ; }