Compare commits
5 Commits
16b5af3365
...
feat/profi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50d6b34f11 | ||
|
|
189e9c127f | ||
|
|
e7c7bf363e | ||
|
|
0564dc4b91 | ||
|
|
9da82c839f |
@@ -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<FastifyInstance> {
|
||||
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() }));
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
export {
|
||||
LlmService,
|
||||
type ILlmService,
|
||||
type LlmConfig,
|
||||
type LlmGenerationMeta,
|
||||
type GenerateQuestionsInput,
|
||||
type GenerateQuestionsResult,
|
||||
type GeneratedQuestion,
|
||||
} from './llm.service.js';
|
||||
@@ -71,12 +71,7 @@ export interface GenerateQuestionsResult {
|
||||
meta: LlmGenerationMeta;
|
||||
}
|
||||
|
||||
/** Interface for QuestionService dependency injection and testing */
|
||||
export interface ILlmService {
|
||||
generateQuestions(input: GenerateQuestionsInput): Promise<GenerateQuestionsResult>;
|
||||
}
|
||||
|
||||
export class LlmService implements ILlmService {
|
||||
export class LlmService {
|
||||
private readonly config: LlmConfig;
|
||||
|
||||
constructor(config?: Partial<LlmConfig>) {
|
||||
|
||||
Reference in New Issue
Block a user