16 lines
409 B
TypeScript
16 lines
409 B
TypeScript
import { Injectable } from '@nestjs/common';
|
|
import { InjectRepository } from '@nestjs/typeorm';
|
|
import { Carrera } from './entities/carrera.entity';
|
|
import { Repository } from 'typeorm';
|
|
|
|
@Injectable()
|
|
export class CarreraService {
|
|
constructor(
|
|
@InjectRepository(Carrera)
|
|
private readonly carreraRepository: Repository<Carrera>,
|
|
) {}
|
|
findAll() {
|
|
return this.carreraRepository.find();
|
|
}
|
|
}
|