File size: 1,483 Bytes
fd07338
 
 
 
862e7e0
 
 
 
 
fd07338
862e7e0
 
fd07338
 
 
 
 
 
 
 
 
 
 
 
 
a8a7b69
 
 
fd07338
 
 
 
 
862e7e0
fd07338
862e7e0
 
fd07338
 
 
a8a7b69
fd07338
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
57
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

// Entities
import {
  CourseMaterial,
  LectureSectionLab,
  StudentMaterialView,
} from './entities';
import { File } from '../files/entities/file.entity';
import { CourseEnrollment } from '../enrollments/entities/course-enrollment.entity';
import { StudentProgress } from '../analytics/entities/student-progress.entity';

// Controllers
import { MaterialsController, CourseStructureController } from './controllers';

// Services
import { MaterialsService, CourseStructureService } from './services';

// Import YouTube module for video upload functionality
import { YoutubeModule } from '../youtube/youtube.module';

// Import Google Drive module for document upload functionality
import { GoogleDriveModule } from '../google-drive/google-drive.module';

// Import Notifications module
import { NotificationsModule } from '../notifications/notifications.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      CourseMaterial,
      LectureSectionLab,
      StudentMaterialView,
      File,
      CourseEnrollment,
      StudentProgress,
    ]),
    YoutubeModule,
    GoogleDriveModule,
    NotificationsModule,
  ],
  controllers: [
    MaterialsController,
    CourseStructureController,
  ],
  providers: [
    MaterialsService,
    CourseStructureService,
  ],
  exports: [
    MaterialsService,
    CourseStructureService,
  ],
})
export class CourseMaterialsModule {}