Fix prefix should default to /, not ''

b/c `route` isn't a valid Hapi route, but `/route` is.
This commit is contained in:
Joey Baker 2016-10-26 13:25:27 -07:00
parent 966b35164f
commit d3976fa44b

View File

@ -7,7 +7,7 @@ import url from 'url';
import qs from 'qs';
const register = (server, options = {}, next) => {
options.prefix = options.prefix || '';
options.prefix = options.prefix || '/';
options.name = options.name || 'db';
const db = server.plugins['hapi-sequelize'][options.name];