Merge pull request #124 from Hexastack/feat/channel-add-http-module

feat: import http module in channels module
This commit is contained in:
Mohamed Marrouchi 2024-10-02 06:44:15 +01:00 committed by GitHub
commit 59415817b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,7 @@
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/ */
import { HttpModule } from '@nestjs/axios';
import { MiddlewareConsumer, Module, RequestMethod } from '@nestjs/common'; import { MiddlewareConsumer, Module, RequestMethod } from '@nestjs/common';
import { InjectDynamicProviders } from 'nestjs-dynamic-providers'; import { InjectDynamicProviders } from 'nestjs-dynamic-providers';
@ -28,7 +29,7 @@ export interface ChannelModuleOptions {
controllers: [WebhookController, ChannelController], controllers: [WebhookController, ChannelController],
providers: [ChannelService], providers: [ChannelService],
exports: [ChannelService], exports: [ChannelService],
imports: [NlpModule, ChatModule, AttachmentModule, CmsModule], imports: [NlpModule, ChatModule, AttachmentModule, CmsModule, HttpModule],
}) })
export class ChannelModule { export class ChannelModule {
configure(consumer: MiddlewareConsumer) { configure(consumer: MiddlewareConsumer) {