I have below route to return privacy policy for my app.
const html = `<html><body><div>dsfdsfsfdsfsfsdfdsf</div></body></html>`
const handler = (request, reply) => {
try {
return reply(html)
} catch (err) {
return reply({ success: false, message: err.message, data: [] })
}
}
const routeConfig = {
method: 'GET',
path: '/privacy-policy',
config: {
description: 'Creates a task.',
notes: ['On success, returns { "data": [ { "tasks" } ]}'],
handler
}
}
However when I am returning the html content I am getting double quotes at the start and at the end of my content.
How can I remove them? Thank you