import { IRouter } from 'opensearch-dashboards/server' ; export function registerScriptsRoute ( router ) { router . get ( { path : '/api/opensearch-dashboards/scripts/languages' , validate : false } , async ( context , request , response ) => { return response . ok ( { body : [ 'painless' , 'expression' ] , } ) ; } ) ; }