Skip to content

Commit

Permalink
feat: more export stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm committed Aug 1, 2023
1 parent 96fca6b commit 92dab41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,11 @@ function getJsonOverview (request, reply) {
return this.overview()
}

module.exports = fp(fastifyOverview, {
const plugin = fp(fastifyOverview, {
name: 'fastify-overview',
fastify: '^4.x'
})

module.exports = plugin
module.exports.default = plugin
module.exports.fastifyOverview = plugin

0 comments on commit 92dab41

Please sign in to comment.