Fix prefix should default to /
, not ''
b/c `route` isn't a valid Hapi route, but `/route` is.
This commit is contained in:
parent
966b35164f
commit
d3976fa44b
@ -7,7 +7,7 @@ import url from 'url';
|
|||||||
import qs from 'qs';
|
import qs from 'qs';
|
||||||
|
|
||||||
const register = (server, options = {}, next) => {
|
const register = (server, options = {}, next) => {
|
||||||
options.prefix = options.prefix || '';
|
options.prefix = options.prefix || '/';
|
||||||
options.name = options.name || 'db';
|
options.name = options.name || 'db';
|
||||||
|
|
||||||
const db = server.plugins['hapi-sequelize'][options.name];
|
const db = server.plugins['hapi-sequelize'][options.name];
|
||||||
|
Loading…
Reference in New Issue
Block a user