import { Module, forwardRef } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { ArticlesService } from './articles.service'; import { ArticlesController } from './articles.controller'; import { Article, Author, Category } from './entities'; import { StrapiModule } from './strapi.module'; import { PushModule } from './push/push.module'; @Module({ imports: [ TypeOrmModule.forFeature([Article, Author, Category]), forwardRef(() => StrapiModule), forwardRef(() => PushModule), ], controllers: [ArticlesController], providers: [ArticlesService], exports: [ArticlesService], }) export class ArticlesModule {}