feat: register tests routes

Made-with: Cursor
This commit is contained in:
Anton
2026-03-04 14:47:26 +03:00
parent 28182e2e99
commit 91b33f6f41

View File

@@ -8,6 +8,7 @@ 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 { testsRoutes } from './routes/tests.js';
import { env } from './config/env.js';
import { randomUUID } from 'node:crypto';
@@ -77,6 +78,7 @@ export async function buildApp(): Promise<FastifyInstance> {
await app.register(subscriptionPlugin);
await app.register(authRoutes, { prefix: '/auth' });
await app.register(profileRoutes, { prefix: '/profile' });
await app.register(testsRoutes, { prefix: '/tests' });
app.get('/health', async () => ({ status: 'ok', timestamp: new Date().toISOString() }));