listo validar token
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Controller, Get, UseGuards } from '@nestjs/common';
|
||||
import { AuthGuard } from '@nestjs/passport';
|
||||
import { ApiOperation, ApiTags } from '@nestjs/swagger';
|
||||
import { ApiBearerAuth, ApiOperation, ApiTags } from '@nestjs/swagger';
|
||||
import { Serealize } from '../interceptors/serialize.interceptor';
|
||||
import { StatusService } from './status.service';
|
||||
import { StatusOutputDto } from './dto/output/status.dto';
|
||||
@@ -12,8 +12,9 @@ export class StatusController {
|
||||
|
||||
@Serealize(StatusOutputDto)
|
||||
@Get()
|
||||
// @UseGuards(AuthGuard('jwt'))
|
||||
@UseGuards(AuthGuard('jwt'))
|
||||
@ApiOperation({ description: 'Endpoint que retorna todos los status.' })
|
||||
@ApiBearerAuth('jwt')
|
||||
get() {
|
||||
return this.statusService.findAll();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user