diff --git a/lib/plugins/johnbrett/index.js b/lib/plugins/johnbrett/index.js index 0172291..da668a7 100644 --- a/lib/plugins/johnbrett/index.js +++ b/lib/plugins/johnbrett/index.js @@ -8,18 +8,18 @@ internals.defaults = {}; exports.register = function(plugin, options, next) { - plugin.route({ - method: 'GET', - path: '/johnbrett', - handler: function(request, reply) { - reply('don\'t worry, be hapi!'); - } - }); + plugin.route([{ + method: 'GET', + path: '/johnbrett/{p*}', + handler: function(request, reply) { + reply.redirect('http://blog.johnbrett.me') + } + }]); - next(); + next(); }; exports.register.attributes = { - name: 'johnbrett', - version: '0.0.0' + name: 'johnbrett', + version: '0.1.0' };