mirror of
https://github.com/hexastack/hexabot
synced 2024-11-27 22:42:11 +00:00
Merge pull request #124 from Hexastack/feat/channel-add-http-module
feat: import http module in channels module
This commit is contained in:
commit
59415817b8
@ -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