{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/discuss/issues/386","repository_url":"https://api.github.com/repos/hapijs/discuss","labels_url":"https://api.github.com/repos/hapijs/discuss/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/discuss/issues/386/comments","events_url":"https://api.github.com/repos/hapijs/discuss/issues/386/events","html_url":"https://github.com/hapijs/discuss/issues/386","id":183605778,"number":386,"title":"Getting Error: Route missing path","user":{"login":"priteshpoddar","id":15103626,"avatar_url":"https://avatars.githubusercontent.com/u/15103626?v=3","gravatar_id":"","url":"https://api.github.com/users/priteshpoddar","html_url":"https://github.com/priteshpoddar","followers_url":"https://api.github.com/users/priteshpoddar/followers","following_url":"https://api.github.com/users/priteshpoddar/following{/other_user}","gists_url":"https://api.github.com/users/priteshpoddar/gists{/gist_id}","starred_url":"https://api.github.com/users/priteshpoddar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priteshpoddar/subscriptions","organizations_url":"https://api.github.com/users/priteshpoddar/orgs","repos_url":"https://api.github.com/users/priteshpoddar/repos","events_url":"https://api.github.com/users/priteshpoddar/events{/privacy}","received_events_url":"https://api.github.com/users/priteshpoddar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-18T07:04:17Z","updated_at":"2016-10-18T07:16:54Z","closed_at":null,"body":"I am [following this tutorial](https://auth0.com/blog/hapijs-authentication-secure-your-api-with-json-web-tokens/) an receiving the following error \r\n\r\n```\r\n/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/node_modules/hoek/lib/index.js:737\r\n    throw new Error(msgs.join(' ') || 'Unknown error');\r\n    ^\r\n\r\nError: Route missing path\r\n    at Object.exports.unique.exports.contain.exports.reachTemplate.exports.assert.condition [as assert] (/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/node_modules/hoek/lib/index.js:737:11)\r\n    at new module.exports.internals.Route.options (/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/lib/route.js:40:10)\r\n    at internals.Connection._init.internals.Connection._start.internals.Connection._stop.internals.Connection._dispatch.internals.Connection.inject.internals.Connection._addRoute (/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/lib/connection.js:387:19)\r\n    at internals.Connection._init.internals.Connection._start.internals.Connection._stop.internals.Connection._dispatch.internals.Connection.inject.internals.Connection._route (/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/lib/connection.js:379:18)\r\n    at module.exports.internals.Plugin.parent.auth.internals.Plugin.register.internals.Plugin._apply (/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/lib/plugin.js:572:14)\r\n    at module.exports.internals.Plugin.parent.auth.internals.Plugin.register.internals.Plugin.route (/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/lib/plugin.js:542:10)\r\n    at /Users/pritesh/Sites/projects/hapi-rest-mongo/server.js:37:12\r\n    at Array.forEach (native)\r\n    at /Users/pritesh/Sites/projects/hapi-rest-mongo/server.js:33:6\r\n    at /Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/lib/plugin.js:323:16\r\n    at done (/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/node_modules/items/lib/index.js:31:25)\r\n    at Object.exports.register (/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/inert/lib/index.js:42:12)\r\n    at Object.target [as register] (/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/node_modules/joi/lib/object.js:79:30)\r\n    at each (/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/lib/plugin.js:317:14)\r\n    at iterate (/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/node_modules/items/lib/index.js:36:13)\r\n    at done (/Users/pritesh/Sites/projects/hapi-rest-mongo/node_modules/hapi/node_modules/items/lib/index.js:28:25)\r\n```\r\nAll my files are same as in the tutorial above except for the part \r\n```\r\nglob.sync('route/**/routes/*.js', {\r\n    root: __dirname\r\n  }).forEach(file => {\r\n    const route = require(path.join(__dirname, file));\r\n    // console.log(route);\r\n    // reply(route);\r\n    server.route(route);\r\n  });\r\n```\r\nin server.js.I am not sure what is wrong .."},"comment":{"url":"https://api.github.com/repos/hapijs/discuss/issues/comments/254426340","html_url":"https://github.com/hapijs/discuss/issues/386#issuecomment-254426340","issue_url":"https://api.github.com/repos/hapijs/discuss/issues/386","id":254426340,"user":{"login":"simon-p-r","id":4668724,"avatar_url":"https://avatars.githubusercontent.com/u/4668724?v=3","gravatar_id":"","url":"https://api.github.com/users/simon-p-r","html_url":"https://github.com/simon-p-r","followers_url":"https://api.github.com/users/simon-p-r/followers","following_url":"https://api.github.com/users/simon-p-r/following{/other_user}","gists_url":"https://api.github.com/users/simon-p-r/gists{/gist_id}","starred_url":"https://api.github.com/users/simon-p-r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simon-p-r/subscriptions","organizations_url":"https://api.github.com/users/simon-p-r/orgs","repos_url":"https://api.github.com/users/simon-p-r/repos","events_url":"https://api.github.com/users/simon-p-r/events{/privacy}","received_events_url":"https://api.github.com/users/simon-p-r/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T07:16:54Z","updated_at":"2016-10-18T07:16:54Z","body":"I need to see the routes files as error is pointing to there"}}
{"actor":{"display_login":"simon-p-r"}}