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 committed Oct 26, 2024
1 parent 8a1fed6 commit a17d373
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 a17d373

Please sign in to comment.