mejoras
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
import { Body, Controller, Delete, Get, Post, Query } from '@nestjs/common';
|
||||
import {
|
||||
Body,
|
||||
Controller,
|
||||
Delete,
|
||||
Get,
|
||||
Post,
|
||||
Query,
|
||||
UseGuards,
|
||||
} from '@nestjs/common';
|
||||
import { AuthGuard } from '@nestjs/passport';
|
||||
import { ApiBody, ApiOperation, ApiQuery, ApiTags } from '@nestjs/swagger';
|
||||
import { Serealize } from '../interceptors/serialize.interceptor';
|
||||
import { CarreraProgramaService } from './carrera-programa.service';
|
||||
@@ -13,9 +22,10 @@ export class CarreraProgramaController {
|
||||
constructor(private carreraProgramaService: CarreraProgramaService) {}
|
||||
|
||||
@Post()
|
||||
// @UseGuards(AuthGuard('jwt'))
|
||||
@ApiOperation({
|
||||
description:
|
||||
'Endpoint que crea una asociación entra una carrera y un programa.',
|
||||
'Endpoint que crea una asociación entre una carrera y un programa.',
|
||||
})
|
||||
@ApiBody({
|
||||
description: 'Ambas variables son obligatorios.',
|
||||
@@ -31,6 +41,7 @@ export class CarreraProgramaController {
|
||||
}
|
||||
|
||||
@Delete()
|
||||
// @UseGuards(AuthGuard('jwt'))
|
||||
@ApiOperation({
|
||||
description:
|
||||
'Endpoint que borra la asociación entre una carrera y un programa.',
|
||||
|
||||
Reference in New Issue
Block a user