mirror of
https://github.com/hexastack/hexabot
synced 2024-11-24 13:05:15 +00:00
feat: import http module in channels module
This commit is contained in:
parent
d9b8c9b4d4
commit
fc5e53acb2
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user