Skip to content

Commit

Permalink
refactor: do not match example routes
Browse files Browse the repository at this point in the history
  • Loading branch information
nin0-dev authored and splatterxl committed Oct 27, 2024
1 parent 9e7e1ac commit e267441
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const server = fastify({

server.register(bootstrap, {
directory: resolve(__dirname, "rest"),
mask: RegExp(/\.(js|ts)$/),
mask: /^(?!_example\.ts$).*\.(js|ts)$/,
prefix: "/api"
});

Expand Down
File renamed without changes.

0 comments on commit e267441

Please sign in to comment.