From 80996c23bdccce7a45b7be88f8e3039e89da032e Mon Sep 17 00:00:00 2001 From: Eejit <76887639+Eejit43@users.noreply.github.com> Date: Thu, 4 Jul 2024 09:23:32 +0100 Subject: [PATCH] fix: correctly implement rate limiting --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 5dc65a1..cce1d43 100644 --- a/src/app.ts +++ b/src/app.ts @@ -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') });