From b3b539b6fb765cadf27e93d83e3dabbe6ed230b9 Mon Sep 17 00:00:00 2001 From: Kirill Date: Fri, 22 May 2026 15:21:55 +0500 Subject: [PATCH] fix(api): register auth routes Add missing registerAuthRoutes call in registerApiRoutes to enable POST /api/auth/request-code, /verify-code, /register, /login, /forgot-password, /reset-password, and PATCH /api/me/profile routes --- server/src/routes/api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/routes/api.js b/server/src/routes/api.js index 2052556..9f3fe93 100644 --- a/server/src/routes/api.js +++ b/server/src/routes/api.js @@ -10,6 +10,7 @@ import { registerAdminUserRoutes } from './api/admin-users.js' import { registerCatalogSliderRoutes } from './api/catalog-slider.js' import { registerPublicCatalogRoutes } from './api/public-catalog.js' import { registerPublicReviewRoutes } from './api/public-reviews.js' +import { registerAuthRoutes } from './auth.js' import { registerAuthOAuthRoutes } from './auth-oauth.js' import { registerAuthPasswordRoutes } from './auth-password.js' import { registerAuthSessionRoutes } from './auth-session.js' @@ -32,6 +33,7 @@ export async function registerApiRoutes(fastify) { await registerAdminNotificationRoutes(fastify) await registerAdminProfileRoutes(fastify) + await registerAuthRoutes(fastify) await registerAuthSessionRoutes(fastify) await registerAuthPasswordRoutes(fastify) await registerAuthOAuthRoutes(fastify)