add content
This commit is contained in:
parent
f03b55fec4
commit
06f187b742
@ -1,12 +1,24 @@
|
|||||||
import { Module } from '@nestjs/common';
|
import { Module } from '@nestjs/common';
|
||||||
|
|
||||||
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
|
|
||||||
|
import { PostEntity } from '@/modules/content/entities/post.entity';
|
||||||
|
import { PostRepository } from '@/modules/content/repositories/post.repository';
|
||||||
|
import { SanitizeService } from '@/modules/content/services/SanitizeService';
|
||||||
import { PostService } from '@/modules/content/services/post.service';
|
import { PostService } from '@/modules/content/services/post.service';
|
||||||
|
|
||||||
|
import { PostSubscriber } from '@/modules/content/subscribers/post.subscriber';
|
||||||
|
import { DatabaseModule } from '@/modules/database/database.module';
|
||||||
|
|
||||||
import { PostController } from './controllers/post.controller';
|
import { PostController } from './controllers/post.controller';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
|
imports: [
|
||||||
|
TypeOrmModule.forFeature([PostEntity]),
|
||||||
|
DatabaseModule.forRepository([PostRepository]),
|
||||||
|
],
|
||||||
controllers: [PostController],
|
controllers: [PostController],
|
||||||
providers: [PostService],
|
providers: [PostService, PostSubscriber, SanitizeService],
|
||||||
exports: [PostService],
|
exports: [PostService, DatabaseModule.forRepository([PostRepository])],
|
||||||
})
|
})
|
||||||
export class ContentModule {}
|
export class ContentModule {}
|
||||||
|
Loading…
Reference in New Issue
Block a user