Spaces:
Sleeping
Sleeping
File size: 1,387 Bytes
56e2348 a8a7b69 56e2348 a8a7b69 56e2348 | 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 | import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Grade, GradeComponent, Rubric, RubricCriteria, GpaCalculation } from './entities';
import { GradesService, RubricsService } from './services';
import { GradesController, RubricsController } from './controllers';
import { Course } from '../courses/entities/course.entity';
import { CourseEnrollment } from '../enrollments/entities/course-enrollment.entity';
import { User } from '../auth/entities/user.entity';
import { Semester } from '../campus/entities/semester.entity';
import { Assignment } from '../assignments/entities/assignment.entity';
import { CoursesModule } from '../courses/courses.module';
import { EnrollmentsModule } from '../enrollments/enrollments.module';
import { NotificationsModule } from '../notifications/notifications.module';
@Module({
imports: [
TypeOrmModule.forFeature([
Grade,
GradeComponent,
Rubric,
RubricCriteria,
GpaCalculation,
Course,
CourseEnrollment,
User,
Semester,
Assignment,
]),
forwardRef(() => CoursesModule),
forwardRef(() => EnrollmentsModule),
NotificationsModule,
],
controllers: [GradesController, RubricsController],
providers: [GradesService, RubricsService],
exports: [GradesService, RubricsService],
})
export class GradesModule {}
|