import { IRouter } from 'src/core/server' ; import { CustomIntegrationRegistry } from '../custom_integration_registry' ; import { ROUTES_APPEND_CUSTOM_INTEGRATIONS , ROUTES_REPLACEMENT_CUSTOM_INTEGRATIONS , } from '../../common' ; export function defineRoutes ( router , customIntegrationsRegistry ) { router . get ( { path : ROUTES_APPEND_CUSTOM_INTEGRATIONS , validate : false , } , async ( context , request , response ) => { const integrations = customIntegrationsRegistry . getAppendCustomIntegrations ( ) ; return response . ok ( { body : integrations , } ) ; } ) ; router . get ( { path : ROUTES_REPLACEMENT_CUSTOM_INTEGRATIONS , validate : false , } , async ( context , request , response ) => { const integrations = customIntegrationsRegistry . getReplacementCustomIntegrations ( ) ; return response . ok ( { body : integrations , } ) ; } ) ; }