22 lines
684 B
TypeScript
22 lines
684 B
TypeScript
import { Module, forwardRef } from '@nestjs/common';
|
|
import { HttpModule } from '@nestjs/axios';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { StrapiService } from './strapi.service';
|
|
import { StrapiController } from './strapi.controller';
|
|
import { ArticlesModule } from './articles.module';
|
|
import { LiveBlogModule } from './live-blog.module';
|
|
import { Category } from './entities';
|
|
|
|
@Module({
|
|
imports: [
|
|
HttpModule,
|
|
TypeOrmModule.forFeature([Category]),
|
|
forwardRef(() => ArticlesModule),
|
|
forwardRef(() => LiveBlogModule),
|
|
],
|
|
controllers: [StrapiController],
|
|
providers: [StrapiService],
|
|
exports: [StrapiService],
|
|
})
|
|
export class StrapiModule {}
|