mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-13 22:19:09 +00:00
FIX: add authentication to swagger
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user