feat: register tests routes
Made-with: Cursor
This commit is contained in:
@@ -8,6 +8,7 @@ import authPlugin from './plugins/auth.js';
|
|||||||
import subscriptionPlugin from './plugins/subscription.js';
|
import subscriptionPlugin from './plugins/subscription.js';
|
||||||
import { authRoutes } from './routes/auth.js';
|
import { authRoutes } from './routes/auth.js';
|
||||||
import { profileRoutes } from './routes/profile.js';
|
import { profileRoutes } from './routes/profile.js';
|
||||||
|
import { testsRoutes } from './routes/tests.js';
|
||||||
import { env } from './config/env.js';
|
import { env } from './config/env.js';
|
||||||
import { randomUUID } from 'node:crypto';
|
import { randomUUID } from 'node:crypto';
|
||||||
|
|
||||||
@@ -77,6 +78,7 @@ export async function buildApp(): Promise<FastifyInstance> {
|
|||||||
await app.register(subscriptionPlugin);
|
await app.register(subscriptionPlugin);
|
||||||
await app.register(authRoutes, { prefix: '/auth' });
|
await app.register(authRoutes, { prefix: '/auth' });
|
||||||
await app.register(profileRoutes, { prefix: '/profile' });
|
await app.register(profileRoutes, { prefix: '/profile' });
|
||||||
|
await app.register(testsRoutes, { prefix: '/tests' });
|
||||||
|
|
||||||
app.get('/health', async () => ({ status: 'ok', timestamp: new Date().toISOString() }));
|
app.get('/health', async () => ({ status: 'ok', timestamp: new Date().toISOString() }));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user