From e7c7bf363ebc9eab6904a8da6e3d2c6825a80b61 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 4 Mar 2026 14:18:23 +0300 Subject: [PATCH] feat: register profile routes Made-with: Cursor --- src/app.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app.ts b/src/app.ts index f83faac..916ec76 100644 --- a/src/app.ts +++ b/src/app.ts @@ -7,6 +7,7 @@ import rateLimitPlugin from './plugins/rateLimit.js'; import authPlugin from './plugins/auth.js'; import subscriptionPlugin from './plugins/subscription.js'; import { authRoutes } from './routes/auth.js'; +import { profileRoutes } from './routes/profile.js'; import { env } from './config/env.js'; import { randomUUID } from 'node:crypto'; @@ -75,6 +76,7 @@ export async function buildApp(): Promise { await app.register(authPlugin); await app.register(subscriptionPlugin); await app.register(authRoutes, { prefix: '/auth' }); + await app.register(profileRoutes, { prefix: '/profile' }); app.get('/health', async () => ({ status: 'ok', timestamp: new Date().toISOString() }));