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