import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { FilesModule } from '../files/files.module';
import { MinioModule } from '../minio/minio.module';
import { SignaturesController } from './signatures.controller';
import { SignaturesService } from './signatures.service';
import { SignaturesRepository } from './signatures.repository';
import { SavedSignature } from './entities/saved-signature.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([SavedSignature]),
    FilesModule,
    MinioModule,
  ],
  controllers: [SignaturesController],
  providers: [SignaturesService, SignaturesRepository],
  exports: [SignaturesService],
})
export class SignaturesModule {}
