From d3976fa44bbfdccf2c83a2766df5fc9360ae0cd1 Mon Sep 17 00:00:00 2001 From: Joey Baker Date: Wed, 26 Oct 2016 13:25:27 -0700 Subject: [PATCH] Fix prefix should default to `/`, not '' b/c `route` isn't a valid Hapi route, but `/route` is. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 7580a15..1a9710c 100644 --- a/src/index.js +++ b/src/index.js @@ -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];