import { Module } from '@nestjs/common'
import { MongooseModule } from '@nestjs/mongoose'
import { Matter, MatterSchema } from '../common/schemas'
import { MattersController } from './matters.controller'
import { MattersService } from './matters.service'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: Matter.name, schema: MatterSchema },
    ]),
  ],
  controllers: [MattersController],
  providers: [MattersService],
  exports: [MattersService],
})
export class MattersModule {}
