Skip to content

Commit

Permalink
Revert "fix: autohooks prefix (#375)"
Browse files Browse the repository at this point in the history
This reverts commit 64e6bf2.
  • Loading branch information
climba03003 authored and jean-michelet committed Jun 17, 2024
1 parent 1833842 commit a26d1e4
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 76 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ const fastifyAutoload = async function autoload (fastify, options) {
registerAllPlugins(app, pluginFiles, true)
}

fastify.register(composedPlugin, {
prefix: options.options?.prefix ?? replaceRouteParamPattern(prefix)
})
fastify.register(composedPlugin, { prefix: options.options?.prefix ?? prefix })
}
}

Expand Down
8 changes: 0 additions & 8 deletions test/issues/374/routes/entity/.autohooks.js

This file was deleted.

7 changes: 0 additions & 7 deletions test/issues/374/routes/entity/_entity/index.js

This file was deleted.

7 changes: 0 additions & 7 deletions test/issues/374/routes/entity/index.js

This file was deleted.

7 changes: 0 additions & 7 deletions test/issues/374/routes/index.js

This file was deleted.

44 changes: 0 additions & 44 deletions test/issues/374/test.js

This file was deleted.

0 comments on commit a26d1e4

Please sign in to comment.