data profesor
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import { Controller, Delete, Param } from '@nestjs/common';
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { DatosAcademicosService } from './datos_academicos.service';
|
||||
|
||||
@Controller('datos-academicos')
|
||||
export class DatosAcademicosController {
|
||||
constructor(private readonly datosAcademicosService: DatosAcademicosService) {}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.datosAcademicosService.findAll();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,4 +14,8 @@ export class DatosAcademicosService {
|
||||
async removeByProfesorId(id_profesor: number): Promise<void> {
|
||||
await this.datosAcademicosRepository.delete({ profesor: { id_profesor } });
|
||||
}
|
||||
|
||||
async findAll(): Promise<DatosAcademicos[]> {
|
||||
return this.datosAcademicosRepository.find();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import { Controller, Delete, Param } from '@nestjs/common';
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { LineasInvestigacionService } from './lineas_investigacion.service';
|
||||
|
||||
@Controller('lineas-investigacion')
|
||||
export class LineasInvestigacionController {
|
||||
constructor(private readonly lineasInvestigacionService: LineasInvestigacionService) {}
|
||||
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.lineasInvestigacionService.findAll();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,4 +14,8 @@ export class LineasInvestigacionService {
|
||||
async removeByProfesorId(id_profesor: number): Promise<void> {
|
||||
await this.lineasInvestigacionRepository.delete({ profesor: { id_profesor } });
|
||||
}
|
||||
|
||||
async findAll(): Promise<LineasInvestigacion[]> {
|
||||
return this.lineasInvestigacionRepository.find();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import { Controller, Delete, Param } from '@nestjs/common';
|
||||
import { Controller,Get } from '@nestjs/common';
|
||||
import { ProyectosAcademicosService } from './proyectos_academicos.service';
|
||||
|
||||
@Controller('proyectos-academicos')
|
||||
export class ProyectosAcademicosController {
|
||||
constructor(private readonly proyectosAcademicosService: ProyectosAcademicosService) {}
|
||||
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.proyectosAcademicosService.findAll();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,4 +14,8 @@ export class ProyectosAcademicosService {
|
||||
async removeByProfesorId(id_profesor: number): Promise<void> {
|
||||
await this.proyectosAcademicosRepository.delete({ profesor: { id_profesor } });
|
||||
}
|
||||
|
||||
async findAll(): Promise<ProyectosAcademicos[]> {
|
||||
return this.proyectosAcademicosRepository.find();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user