UNPKG

pallies

Version:

Robust user management for Hapi

22 lines (18 loc) 607 B
'use strict'; const Path = require('path'); const Hoek = require('@hapi/hoek'); const Manifest = require('./server/manifest'); const PluginConfig = require('./lib/plugins/@hapipal.schwifty').options; // Take schwifty registration's knex option // but specify the plugin's migrations directory module.exports = Hoek.applyToDefaults( { migrations: { directory: Path.relative(process.cwd(), PluginConfig.migrationsDir) } }, Manifest .get('/register/plugins', process.env) .find(({ plugin }) => plugin === '@hapipal/schwifty') .options.knex );