Skip to content
Snippets Groups Projects
structures.module.ts 824 B
Newer Older
  • Learn to ignore specific revisions
  • import { HttpModule, Module } from '@nestjs/common';
    
    import { MongooseModule } from '@nestjs/mongoose';
    
    import { MailerModule } from '../mailer/mailer.module';
    
    import { UsersModule } from '../users/users.module';
    
    import { Structure, StructureSchema } from './schemas/structure.schema';
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    import { StructuresController } from './structures.controller';
    
    import { StructuresService } from './services/structures.service';
    import { ApticStructuresService } from './services/aptic-structures.service';
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    
    @Module({
    
      imports: [
        MongooseModule.forFeature([{ name: Structure.name, schema: StructureSchema }]),
        HttpModule,
        MailerModule,
        UsersModule,
      ],
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
      controllers: [StructuresController],
    
      exports: [StructuresService],
    
      providers: [StructuresService, ApticStructuresService],
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    })
    export class StructuresModule {}