import { Module } from '@nestjs/common';
import { LocationController } from './location.controller';
import { LocationService } from './location.service';
import { ConfigModule } from '@nestjs/config';
import { TypeOrmSharedModule } from '@app/typeorm';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MerchantLocation } from './location.entity';

@Module({
  imports: [
    ConfigModule.forRoot(),
    TypeOrmSharedModule,
    TypeOrmModule.forFeature([MerchantLocation]), //we use this to inject repositories
  ],
  controllers: [LocationController],
  providers: [LocationService],
  exports: [LocationService],
})
export class LocationModule {}
