Skip to content

Commit

Permalink
fix: correctly implement rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
Eejit43 committed Jul 4, 2024
1 parent 2904ace commit 80996c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ handlebars.registerHelper('iterateEuroCoinVariant', (type: string, country: stri
// Load layouts and static assets
const fastify = Fastify({ trustProxy: true });

await fastify.register(fastifyRateLimit.default);
await fastify.register(fastifyRateLimit);
fastify.register(pointOfView, { engine: { handlebars }, root: 'src/views/', layout: 'layouts/layout.hbs' });
fastify.register(fastifyStatic, { root: path.join(path.dirname(new URL(import.meta.url).pathname), 'public') });

Expand Down

0 comments on commit 80996c2

Please sign in to comment.