import { aggregateAlertRoute } from './aggregate' ; import { createAlertRoute } from './create' ; import { deleteAlertRoute } from './delete' ; import { findAlertRoute } from './find' ; import { getAlertRoute } from './get' ; import { getAlertStateRoute } from './get_alert_state' ; import { getAlertInstanceSummaryRoute } from './get_alert_instance_summary' ; import { listAlertTypesRoute } from './list_alert_types' ; import { updateAlertRoute } from './update' ; import { enableAlertRoute } from './enable' ; import { disableAlertRoute } from './disable' ; import { updateApiKeyRoute } from './update_api_key' ; import { muteAlertInstanceRoute } from './mute_instance' ; import { unmuteAlertInstanceRoute } from './unmute_instance' ; import { muteAllAlertRoute } from './mute_all' ; import { unmuteAllAlertRoute } from './unmute_all' ; import { healthRoute } from './health' ; import { RouteOptions } from '..' ; export function defineLegacyRoutes ( opts ) { const { router , licenseState , encryptedSavedObjects , usageCounter } = opts ; createAlertRoute ( opts ) ; aggregateAlertRoute ( router , licenseState , usageCounter ) ; deleteAlertRoute ( router , licenseState , usageCounter ) ; findAlertRoute ( router , licenseState , usageCounter ) ; getAlertRoute ( router , licenseState , usageCounter ) ; getAlertStateRoute ( router , licenseState , usageCounter ) ; getAlertInstanceSummaryRoute ( router , licenseState , usageCounter ) ; listAlertTypesRoute ( router , licenseState , usageCounter ) ; updateAlertRoute ( router , licenseState , usageCounter ) ; enableAlertRoute ( router , licenseState , usageCounter ) ; disableAlertRoute ( router , licenseState , usageCounter ) ; updateApiKeyRoute ( router , licenseState , usageCounter ) ; muteAllAlertRoute ( router , licenseState , usageCounter ) ; unmuteAllAlertRoute ( router , licenseState , usageCounter ) ; muteAlertInstanceRoute ( router , licenseState , usageCounter ) ; unmuteAlertInstanceRoute ( router , licenseState , usageCounter ) ; healthRoute ( router , licenseState , encryptedSavedObjects , usageCounter ) ; }