import { DataContext } from "../../utils/DataContext" ; export const pluginsRequest = { pluginsList ( context ) { return context . server . plugins ; } , plugin ( context , params , publishParams ) { if ( publishParams && params . pluginId !== publishParams . pluginId ) throw null ; return context . server . plugins . find ( plugin => plugin . id === params . pluginId ) ; } , } ;