}
});
+server.route({
+ method: 'GET',
+ path:'/raw',
+ handler: function (request, reply) {
+ insults.generate().then(function (insult) {
+ reply(insult);
+ });
+ }
+});
+
// Preload stuff, then run
console.log("Loading template...");
fs.readFile(path.resolve(__dirname, '../ext/index.html'), {encoding: 'utf8'}, function (err, contents) {