22 lines
524 B
TypeScript
22 lines
524 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { Agreement } from './entity/agreement.entity';
|
|
import { AgreementService } from './services/agreement.service';
|
|
import { AgreementController } from './controllers/api/agreement.controller';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([Agreement]),
|
|
],
|
|
controllers: [
|
|
AgreementController,
|
|
],
|
|
providers: [
|
|
AgreementService,
|
|
],
|
|
exports: [
|
|
AgreementService,
|
|
],
|
|
})
|
|
export class AgreementModule {}
|