"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.registerSearchUIRoutes = registerSearchUIRoutes; var _configSchema = require("@kbn/config-schema"); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ function registerSearchUIRoutes({ router, enterpriseSearchRequestHandler }) { router.get({ path: '/internal/app_search/engines/{engineName}/search_ui/field_config', validate: { params: _configSchema.schema.object({ engineName: _configSchema.schema.string() }) } }, enterpriseSearchRequestHandler.createRequest({ path: '/as/engines/:engineName/search_experience/field_config' })); }