services
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { Controller } from '@nestjs/common';
|
||||
import { CarreraProgramaService } from './carrera-programa.service';
|
||||
|
||||
@Controller('carrera-programa')
|
||||
export class CarreraProgramaController {}
|
||||
export class CarreraProgramaController {
|
||||
constructor(private carreraProgramaService: CarreraProgramaService) {}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { Repository } from 'typeorm';
|
||||
import { InjectRepository } from '@nestjs/typeorm';
|
||||
import { CarreraPrograma } from './carrera-programa.entity';
|
||||
|
||||
@Injectable()
|
||||
export class CarreraProgramaService {}
|
||||
export class CarreraProgramaService {
|
||||
constructor(
|
||||
@InjectRepository(CarreraPrograma)
|
||||
private repository: Repository<CarreraPrograma>,
|
||||
) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user