import { GlobalSearchRouter } from '../types' ; export const registerInternalSearchableTypesRoute = ( router ) => { router . get ( { path : '/internal/global_search/searchable_types' , validate : false , } , async ( ctx , req , res ) => { const types = await ctx . globalSearch ! . getSearchableTypes ( ) ; return res . ok ( { body : { types , } , } ) ; } ) ; } ;