Answers for "@hapi/disinfect"

0

@hapi/disinfect

{    path: '/',    method: 'get',    handler: (request, reply) => {        ...    },    options: {        plugins: {            disinfect: false        }    }}
Posted by: Guest on December-23-2020
0

@hapi/disinfect

const customSanitizer = (dirtyObj) => {    // ...    return cleanObj;}
Posted by: Guest on December-23-2020
0

@hapi/disinfect

const registerPlugins = async (server) => Promise.all([    server.register({        plugin: require('disinfect'),        options: {            disinfectQuery: true,            disinfectParams: true,            disinfectPayload: true        }    })]); registerPlugins(server)    .then(() => {        // ...    })    .catch((err) => {        // ...    }) 
Posted by: Guest on December-23-2020
0

@hapi/disinfect

// example{    path: '/',    method: 'get',    handler: (request, reply) => {        ...    },    options: {        plugins: {            disinfect: {                disinfectQuery: true,                disinfectParams: false,                disinfectPayload: true            }        }    }}
Posted by: Guest on December-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language