{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/hapi/issues/2667","labels_url":"https://api.github.com/repos/hapijs/hapi/issues/2667/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/hapi/issues/2667/comments","events_url":"https://api.github.com/repos/hapijs/hapi/issues/2667/events","html_url":"https://github.com/hapijs/hapi/issues/2667","id":97651288,"number":2667,"title":"Set plugin prefix in the plugin itself","user":{"login":"AdriVanHoudt","id":2361826,"avatar_url":"https://avatars.githubusercontent.com/u/2361826?v=3","gravatar_id":"","url":"https://api.github.com/users/AdriVanHoudt","html_url":"https://github.com/AdriVanHoudt","followers_url":"https://api.github.com/users/AdriVanHoudt/followers","following_url":"https://api.github.com/users/AdriVanHoudt/following{/other_user}","gists_url":"https://api.github.com/users/AdriVanHoudt/gists{/gist_id}","starred_url":"https://api.github.com/users/AdriVanHoudt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdriVanHoudt/subscriptions","organizations_url":"https://api.github.com/users/AdriVanHoudt/orgs","repos_url":"https://api.github.com/users/AdriVanHoudt/repos","events_url":"https://api.github.com/users/AdriVanHoudt/events{/privacy}","received_events_url":"https://api.github.com/users/AdriVanHoudt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hapijs/hapi/labels/request","name":"request","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"hueniverse","id":56631,"avatar_url":"https://avatars.githubusercontent.com/u/56631?v=3","gravatar_id":"","url":"https://api.github.com/users/hueniverse","html_url":"https://github.com/hueniverse","followers_url":"https://api.github.com/users/hueniverse/followers","following_url":"https://api.github.com/users/hueniverse/following{/other_user}","gists_url":"https://api.github.com/users/hueniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/hueniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hueniverse/subscriptions","organizations_url":"https://api.github.com/users/hueniverse/orgs","repos_url":"https://api.github.com/users/hueniverse/repos","events_url":"https://api.github.com/users/hueniverse/events{/privacy}","received_events_url":"https://api.github.com/users/hueniverse/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-07-28T09:00:26Z","updated_at":"2015-07-29T20:33:53Z","closed_at":"2015-07-29T19:35:23Z","body":"Atm you can pass a plugin prefix with the `options` on `server.register`. I would like to define a 'global' (at plugin level) prefix as well so the plugin also has control over the prefix.\r\nI would still allow the prefix to be passed by the `options`.\r\nThis would result into `route = options.prefix + plugin.attributes.prefix + route.path`\r\n\r\nWould you accept a PR for this?"},"comment":{"url":"https://api.github.com/repos/hapijs/hapi/issues/comments/126087387","html_url":"https://github.com/hapijs/hapi/issues/2667#issuecomment-126087387","issue_url":"https://api.github.com/repos/hapijs/hapi/issues/2667","id":126087387,"user":{"login":"devinivy","id":3150233,"avatar_url":"https://avatars.githubusercontent.com/u/3150233?v=3","gravatar_id":"","url":"https://api.github.com/users/devinivy","html_url":"https://github.com/devinivy","followers_url":"https://api.github.com/users/devinivy/followers","following_url":"https://api.github.com/users/devinivy/following{/other_user}","gists_url":"https://api.github.com/users/devinivy/gists{/gist_id}","starred_url":"https://api.github.com/users/devinivy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devinivy/subscriptions","organizations_url":"https://api.github.com/users/devinivy/orgs","repos_url":"https://api.github.com/users/devinivy/repos","events_url":"https://api.github.com/users/devinivy/events{/privacy}","received_events_url":"https://api.github.com/users/devinivy/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T20:33:53Z","updated_at":"2015-07-29T20:33:53Z","body":"Ugh, sorry @AdriVanHoudt – I linked to the wrong issue.  Try #2650."}}