Skip to content

Commit

Permalink
move glob pattern down
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Sep 7, 2023
1 parent 19bce82 commit 8faef21
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 @@ -126,9 +126,9 @@ async function fastifyStatic (fastify, opts) {
}
} else {
const indexes = opts.index === undefined ? ['index.html'] : [].concat(opts.index)
const globPattern = '**/**'
const indexDirs = new Map()
const routes = new Set()
const globPattern = '**/**'

const roots = Array.isArray(sendOptions.root) ? sendOptions.root : [sendOptions.root]
for (let i = 0; i < roots.length; ++i) {
Expand Down

0 comments on commit 8faef21

Please sign in to comment.