Vizzuality/landgriffon

View on GitHub
api/src/modules/geo-regions/geo-regions.module.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { GeoRegionsController } from 'modules/geo-regions/geo-regions.controller';
import { GeoRegionsService } from 'modules/geo-regions/geo-regions.service';
import { GeoRegion } from 'modules/geo-regions/geo-region.entity';
import { GeoRegionRepository } from 'modules/geo-regions/geo-region.repository';
import { AdminRegionsModule } from 'modules/admin-regions/admin-regions.module';
import { MaterialsModule } from 'modules/materials/materials.module';
import { SuppliersModule } from 'modules/suppliers/suppliers.module';
import { GeoFeaturesService } from 'modules/geo-regions/geo-features.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([GeoRegion]),
    AdminRegionsModule,
    MaterialsModule,
    SuppliersModule,
  ],
  controllers: [GeoRegionsController],
  providers: [GeoRegionsService, GeoRegionRepository, GeoFeaturesService],
  exports: [GeoRegionsService, GeoRegionRepository],
})
export class GeoRegionsModule {}