carrera progrma listo
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
import { Controller, Get, Post, Put } from '@nestjs/common';
|
||||
import { Controller, Delete, Get, Post, Put } from '@nestjs/common';
|
||||
import { CarreraProgramaService } from './carrera-programa.service';
|
||||
|
||||
@Controller('carrera-programa')
|
||||
export class CarreraProgramaController {
|
||||
constructor(private carreraProgramaService: CarreraProgramaService) {}
|
||||
|
||||
|
||||
@Post()
|
||||
create() {}
|
||||
|
||||
@Delete()
|
||||
delete() {}
|
||||
|
||||
@Get()
|
||||
get() {}
|
||||
|
||||
@Put()
|
||||
update() {}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { CarreraProgramaController } from './carrera-programa.controller';
|
||||
import { CarreraProgramaService } from './carrera-programa.service';
|
||||
import { CarreraPrograma } from './carrera-programa.entity';
|
||||
import { CarreraPrograma } from './entity/carrera-programa.entity';
|
||||
|
||||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([CarreraPrograma])],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { InjectRepository } from '@nestjs/typeorm';
|
||||
import { Repository } from 'typeorm';
|
||||
import { CarreraPrograma } from './carrera-programa.entity';
|
||||
import { CarreraPrograma } from './entity/carrera-programa.entity';
|
||||
|
||||
@Injectable()
|
||||
export class CarreraProgramaService {
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import { Entity, PrimaryGeneratedColumn, ManyToOne, JoinColumn } from 'typeorm';
|
||||
import { Carrera } from '../carrera/entity/carrera.entity';
|
||||
import { Programa } from '../programa/programa.entity';
|
||||
import { Carrera } from '../../carrera/entity/carrera.entity';
|
||||
import { Programa } from '../../programa/programa.entity';
|
||||
|
||||
@Entity()
|
||||
export class CarreraPrograma {
|
||||
Reference in New Issue
Block a user