26 lines
867 B
TypeScript
26 lines
867 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { PreguntaService } from './pregunta.service';
|
|
import { PreguntaController } from './pregunta.controller';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { Pregunta } from './entities/pregunta.entity';
|
|
import { TipoPreguntaModule } from '../tipo_pregunta/tipo_pregunta.module';
|
|
import { TipoPregunta } from '../tipo_pregunta/entities/tipo_pregunta.entity';
|
|
import { Opcion } from '../opcion/entities/opcion.entity';
|
|
import { PreguntaOpcion } from '../pregunta_opcion/entities/pregunta_opcion.entity';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
Pregunta,
|
|
TipoPregunta,
|
|
Opcion,
|
|
PreguntaOpcion
|
|
]),
|
|
TipoPreguntaModule
|
|
],
|
|
controllers: [PreguntaController],
|
|
providers: [PreguntaService],
|
|
exports: [TypeOrmModule, PreguntaService]
|
|
})
|
|
export class PreguntaModule {}
|