File size: 2,093 Bytes
41906d6
 
 
 
 
 
8aa5b53
 
32b4d43
41906d6
 
 
8aa5b53
41906d6
 
 
8aa5b53
 
a8a7b69
41906d6
 
 
 
 
 
 
 
8aa5b53
 
32b4d43
41906d6
a8a7b69
41906d6
 
8aa5b53
41906d6
 
 
 
 
8aa5b53
 
41906d6
 
 
 
 
8aa5b53
 
41906d6
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ForumCategory } from './entities/forum-category.entity';
import { CommunityPost } from './entities/community-post.entity';
import { CommunityComment } from './entities/community-comment.entity';
import { CommunityReaction } from './entities/community-reaction.entity';
import { Community } from './entities/community.entity';
import { CommunityTag } from './entities/community-tag.entity';
import { CommunityPostView } from './entities/community-post-view.entity';
import { CommunityPostsController } from './controllers/community-posts.controller';
import { CommunityCommentsController } from './controllers/community-comments.controller';
import { ForumCategoriesController } from './controllers/forum-categories.controller';
import { CommunitiesController } from './controllers/communities.controller';
import { CommunityPostsService } from './services/community-posts.service';
import { CommunityCommentsService } from './services/community-comments.service';
import { ForumCategoriesService } from './services/forum-categories.service';
import { CommunitiesService } from './services/communities.service';
import { CommunityTagsService } from './services/community-tags.service';
import { NotificationsModule } from '../notifications/notifications.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      ForumCategory,
      CommunityPost,
      CommunityComment,
      CommunityReaction,
      Community,
      CommunityTag,
      CommunityPostView,
    ]),
    NotificationsModule,
  ],
  controllers: [
    CommunitiesController,
    CommunityPostsController,
    CommunityCommentsController,
    ForumCategoriesController,
  ],
  providers: [
    CommunitiesService,
    CommunityTagsService,
    CommunityPostsService,
    CommunityCommentsService,
    ForumCategoriesService,
  ],
  exports: [
    CommunitiesService,
    CommunityTagsService,
    CommunityPostsService,
    CommunityCommentsService,
    ForumCategoriesService,
  ],
})
export class CommunityModule {}