cached-generation / plugins /fastify-view.js
enzostvs's picture
enzostvs HF staff
run prettier
5a8d324
raw
history blame contribute delete
333 Bytes
"use strict";
const fp = require("fastify-plugin");
/**
* This plugins adds some utilities to handle http errors
*
* @see https://github.com/fastify/fastify-sensible
*/
module.exports = fp(async function (fastify, opts) {
fastify.register(require("@fastify/view"), {
engine: {
ejs: require("ejs"),
},
});
});