+ async handler(request, reply) {
+ return template.replace(replaceRe, await InsultGenerator.generate());
+ }
+});
+
+server.route({
+ config: {
+ cors: {
+ origin: ['*'],
+ additionalHeaders: ['cache-control', 'x-requested-with']
+ }
+ },
+ method: 'GET',
+ path:'/raw',