dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_AiModule cluster_AiModule_providers cluster_AiModule_imports AuthModule AuthModule AiModule AiModule AuthModule->AiModule CommentModule CommentModule CommentModule->AiModule TitlesModule TitlesModule TitlesModule->AiModule AiService AiService AiService->AiModule

File

src/ai/ai.module.ts

import { Module } from '@nestjs/common';
import { AiService } from './providers/ai.service';
import { AiGateway } from './ai.gateway';
import { AuthModule } from 'src/auth/auth.module';
import { ConfigModule } from '@nestjs/config';
import jwtConfig from 'src/auth/config/jwt.config';
import aiConfig from './config/ai.config';
import { TitlesModule } from 'src/titles/titles.module';
import { CommentModule } from 'src/comment/comment.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Comment } from 'src/comment/comment.entity';
import { AiController } from './ai.controller';

@Module({
  providers: [AiService, AiGateway],
  imports: [
    ConfigModule.forFeature(aiConfig),
    ConfigModule.forFeature(jwtConfig),
    AuthModule,
    TypeOrmModule.forFeature([Comment]),
    TitlesModule,
    CommentModule,
  ],
  controllers: [AiController],
})
export class AiModule {}

results matching ""

    No results matching ""