Skip to content
Snippets Groups Projects
structures.module.ts 524 B
Newer Older
import { HttpModule, Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { Structure, StructureSchema } from './schemas/structure.schema';
Hugo SUBTIL's avatar
Hugo SUBTIL committed
import { StructuresController } from './structures.controller';
import { StructuresService } from './structures.service';

@Module({
  imports: [MongooseModule.forFeature([{ name: Structure.name, schema: StructureSchema }]), HttpModule],
Hugo SUBTIL's avatar
Hugo SUBTIL committed
  controllers: [StructuresController],
  providers: [StructuresService],
})
export class StructuresModule {}