Skip to content

Instantly share code, notes, and snippets.

View rtrys's full-sized avatar

Hugo Ortiz rtrys

  • Paypal
  • Guatemala City
View GitHub Profile
'use strict';
const hapi = require('@hapi/hapi');
async function main() {
try {
const server = await hapi.server();
await server.register({
plugin: require('hapi-pino'),
'use strict';
const Hapi = require('@hapi/hapi');
async function test() {
const server = Hapi.server({ debug: false });
server.ext('onPreResponse', (request, h) => {
try {
console.log('1', '==========');