Skip to content

Commit

Permalink
schema hide true added to route *
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Balduzzi committed May 3, 2018
1 parent 67eb63c commit 565b1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function fastifyStatic (fastify, opts, next) {
if (opts.prefix === undefined) opts.prefix = '/'
const prefix = opts.prefix[opts.prefix.length - 1] === '/' ? opts.prefix : (opts.prefix + '/')

fastify.get(prefix + '*', function (req, reply) {
fastify.get(prefix + '*', { schema: { hide: true } }, function (req, reply) {
pumpSendToReply(req, reply, '/' + req.params['*'])
})

Expand Down

0 comments on commit 565b1f8

Please sign in to comment.