Spaces:
Sleeping
Sleeping
| import { Module } from '@nestjs/common'; | |
| import { TypeOrmModule } from '@nestjs/typeorm'; | |
| import { CoursesService } from './courses.service'; | |
| import { CoursesController } from './courses.controller'; | |
| import { Course } from '../entities/course.entity'; | |
| import { UserCourse } from '../entities/user-course.entity'; | |
| import { UserStar } from '../entities/user-star.entity'; | |
| import { Comment } from '../entities/comment.entity'; | |
| ({ | |
| imports: [TypeOrmModule.forFeature([Course, UserCourse, UserStar, Comment])], | |
| providers: [CoursesService], | |
| controllers: [CoursesController], | |
| exports: [CoursesService], | |
| }) | |
| export class CoursesModule {} | |