FIX: add authentication to swagger

This commit is contained in:
Gabriel Rosa
2023-02-08 15:23:49 -03:00
parent cdba41dffa
commit 8043635b1c
9 changed files with 621 additions and 45 deletions
@@ -1,12 +1,14 @@
import { Body, Controller, HttpException, Post } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import axios from 'axios';
import { Authenticated } from 'src/authentication/authentication.decorator';
import { User, RequestUser } from 'src/authentication/user.decorator';
import { getSecretFromSecretsManager } from 'src/utils/SecretManager';
import { INote } from './dtos';
@ApiTags('Productboard')
@Controller('productboard')
@Authenticated()
export class ProductboardController {
@Post('notes')
async sendNote(@Body() note: INote, @User() user: RequestUser) {