From eee200ae047447bce2cd7b1f8cd1356a621879dc Mon Sep 17 00:00:00 2001 From: Kirill Date: Sat, 23 May 2026 11:12:52 +0500 Subject: [PATCH] Register ip-gate plugin before auth --- server/src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/index.js b/server/src/index.js index ce32fff..cba933c 100644 --- a/server/src/index.js +++ b/server/src/index.js @@ -18,6 +18,7 @@ import { createNotificationQueue } from './lib/notifications/queue.js' import { prisma } from './lib/prisma.js' import { getMaxUploadBodyBytes, getProductImageMaxFileBytes } from './lib/upload-limits.js' import { registerAuth } from './plugins/auth.js' +import { registerIpGate } from './plugins/ip-gate.js' import { registerApiRoutes } from './routes/api.js' import { registerOAuthSocialRoutes } from './routes/oauth-social.js' import { registerUploadsResized } from './routes/uploads-resized.js' @@ -89,6 +90,7 @@ const notificationQueue = createNotificationQueue() fastify.decorate('eventBus', eventBus) fastify.decorate('notificationQueue', notificationQueue) +await registerIpGate(fastify) registerAuth(fastify) await registerUserAddressRoutes(fastify) await registerUserCartRoutes(fastify)