carrera
This commit is contained in:
@@ -6,14 +6,13 @@ import { CarritoGetDto } from './dto/carrera-get-dto';
|
||||
export class CarreraController {
|
||||
constructor(private carreraService: CarreraService) {}
|
||||
|
||||
@Get()
|
||||
get() {
|
||||
// recibir id_institucion y traer todoas las carreras de esa institiucion
|
||||
return this.carreraService.findAll();
|
||||
}
|
||||
|
||||
@Get('carreras')
|
||||
carreras(@Query() query: CarritoGetDto) {
|
||||
return this.carreraService.findAllByIdInstitucion(Number(query.id_institucion));
|
||||
}
|
||||
|
||||
@Get('carrera')
|
||||
carrera(@Query() query: CarritoGetDto) {
|
||||
return this.carreraService.findById(Number(query.id_carrera));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user