forked from WeAcademy/ByteChain-Academy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlessons.module.ts
More file actions
21 lines (20 loc) · 728 Bytes
/
Copy pathlessons.module.ts
File metadata and controls
21 lines (20 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PassportModule } from '@nestjs/passport';
import { Course } from '../courses/entities/course.entity';
import { Lesson } from './entities/lesson.entity';
import { Quiz } from '../quizzes/entities/quiz.entity';
import { LessonsController } from './lessons.controller';
import { LessonsService } from './lessons.service';
import { AuthModule } from '../auth/auth.module';
@Module({
imports: [
TypeOrmModule.forFeature([Lesson, Course, Quiz]),
PassportModule,
AuthModule,
],
controllers: [LessonsController],
providers: [LessonsService],
exports: [LessonsService],
})
export class LessonsModule {}