18 lines
717 B
TypeScript
18 lines
717 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { MikroOrmModule } from '@mikro-orm/nestjs';
|
|
import { JwtModule } from '@nestjs/jwt';
|
|
import { AiController } from './controllers/ai.controller';
|
|
import { AiService } from './providers/ai.service';
|
|
import { AiChatRepository } from './repositories/ai-chat.repository';
|
|
import { AiChat } from './entities/ai-chat.entity';
|
|
import { RestaurantsModule } from '../restaurants/restaurants.module';
|
|
import { AiCrone } from './crone/ai.crone';
|
|
|
|
@Module({
|
|
imports: [MikroOrmModule.forFeature([AiChat]), JwtModule, RestaurantsModule],
|
|
controllers: [AiController],
|
|
providers: [AiService, AiChatRepository, AiCrone],
|
|
exports: [AiChatRepository],
|
|
})
|
|
export class AiModule {}
|