form.module.ts 412 B

12345678910111213
  1. import { Module } from '@nestjs/common'
  2. import { TypeOrmModule } from '@nestjs/typeorm'
  3. import { FormService } from './form.service'
  4. import { Form } from './entities/form.entity'
  5. import { FormController } from './form.controller'
  6. @Module({
  7. imports: [TypeOrmModule.forFeature([Form])],
  8. controllers: [FormController],
  9. providers: [FormService],
  10. exports: [FormService]
  11. })
  12. export class FormModule { }