core-connector-lib
Version:
A connector that facilitates payments between a Mojaloop Connector (SDK Scheme Adapter) and a Core Banking system
12 lines (10 loc) • 365 B
text/typescript
import { ServerRegisterPluginObject } from '@hapi/hapi';
import { PluginsOptions } from './types';
import { loggingPlugin } from './loggingPlugin';
export const createPlugins = (options: PluginsOptions): ServerRegisterPluginObject<PluginsOptions>[] => [
{
plugin: loggingPlugin,
options,
},
// pass any other plugins here, if needed
];