mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-25 13:49:40 +00:00
17 lines
629 B
TypeScript
17 lines
629 B
TypeScript
import { Global, Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { CacheModule } from '~/common/modules/cache/cache.module';
|
|
import { DocumentController } from './controllers';
|
|
import { Document } from './entities';
|
|
import { DocumentRepository } from './repositories';
|
|
import { DocumentService, OciService } from './services';
|
|
|
|
@Global()
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([Document]), CacheModule],
|
|
controllers: [DocumentController],
|
|
providers: [DocumentService, OciService, DocumentRepository],
|
|
exports: [DocumentService, OciService],
|
|
})
|
|
export class DocumentModule {}
|