export class Plugin {

	constructor(Knekt) {
		this.registerRoutes(Knekt);
	}

	properties = {
		name: "My Plugin",
		description: "A demo plugin",
		website: "http://Knekt.co",
		author: "Alex Catchpole"
	};

	registerRoutes(Knekt) {
		//Namespace your routes!
		Knekt.addRoute({
    		method: 'GET',
    		path: '/my-plugin/test',
    		handler: function (request, reply) {
        		reply('Hello, world!');
    		}
		});
	}
}
@@ -72,16 +72,76 @@
 t);%0A%09%7D%0A%0A
+%09//properties is how you provide information to the client.%0A
 %09propert
@@ -261,40 +261,209 @@
 ole%22
+,
 %0A%09
-%7D;%0A%0A%09registerRoutes(Knekt) %7B%0A%09
+%09routes: %5B%0A%09%09%09%7B%0A%09%09%09%09route: '/my-plugin/test',%0A%09%09%09%09method: 'GET'%0A%09%09%09%7D,%0A%09%09%09%7B%0A%09%09%09%09route: '/my-plugin/test',%0A%09%09%09%09method: 'POST',%0A%09%09%09%09parameters: %5B%0A%09%09%09%09%09%7B%0A%09%09%09%09%09%09demo: %22string%22%0A%09%09%09%09%09%7D%0A%09%09%09%09%5D%0A%09%09%09%7D%0A%09%09%5D%0A%09%7D;%0A%0A
 %09//N
@@ -484,16 +484,41 @@
 routes!%0A
+%09registerRoutes(Knekt) %7B%0A
 %09%09Knekt.
@@ -671,12 +671,175 @@
 %7D%0A%09%09%7D);%0A
+%09%09Knekt.addRoute(%7B%0A    %09%09method: 'POST',%0A    %09%09path: '/my-plugin/test',%0A    %09%09handler: function (request, reply) %7B%0A        %09%09reply(request.payload);%0A    %09%09%7D%0A%09%09%7D);%0A
 %09%7D%0A%7D

Update properties of plugin to include routes used