21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
import { Module, forwardRef } from '@nestjs/common';
|
|
import { RestaurantsService } from './providers/restaurants.service';
|
|
import { RestaurantsController } from './controllers/restaurants.controller';
|
|
import { MikroOrmModule } from '@mikro-orm/nestjs';
|
|
import { Restaurant } from './entities/restaurant.entity';
|
|
import { RestRepository } from './repositories/rest.repository';
|
|
import { ScheduleRepository } from './repositories/schedule.repository';
|
|
import { Schedule } from './entities/schedule.entity';
|
|
import { ScheduleService } from './providers/schedule.service';
|
|
import { ScheduleController } from './controllers/schedule.controller';
|
|
import { JwtModule } from '@nestjs/jwt';
|
|
import { AuthModule } from '../auth/auth.module';
|
|
|
|
@Module({
|
|
controllers: [RestaurantsController, ScheduleController],
|
|
providers: [RestaurantsService, RestRepository, ScheduleRepository, ScheduleService],
|
|
imports: [MikroOrmModule.forFeature([Restaurant, Schedule]), JwtModule, forwardRef(() => AuthModule)],
|
|
exports: [RestRepository, ScheduleRepository, ScheduleService],
|
|
})
|
|
export class RestaurantsModule {}
|