Skip to content

Commit

Permalink
Merge pull request #4490 from novuhq/hide-get-environment-from-swagger
Browse files Browse the repository at this point in the history
fix: so get environment is not shown in swagger
  • Loading branch information
scopsy authored Oct 16, 2023
2 parents c74a07a + 742d610 commit 736e6fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/api/src/app/environments/environments.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { GetEnvironment, GetEnvironmentCommand } from './usecases/get-environmen
import { GetMyEnvironments } from './usecases/get-my-environments/get-my-environments.usecase';
import { GetMyEnvironmentsCommand } from './usecases/get-my-environments/get-my-environments.command';
import { JwtAuthGuard } from '../auth/framework/auth.guard';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { ApiExcludeEndpoint, ApiOperation, ApiTags } from '@nestjs/swagger';
import { ApiKey } from '../shared/dtos/api-key';
import { EnvironmentResponseDto } from './dtos/environment-response.dto';
import { ExternalApiAccessible } from '../auth/framework/external-api.decorator';
Expand Down Expand Up @@ -99,6 +99,7 @@ export class EnvironmentsController {
@ApiOperation({
summary: 'Update env by id',
})
@ApiExcludeEndpoint()
@ApiResponse(EnvironmentResponseDto)
async updateMyEnvironment(
@UserSession() user: IJwtPayload,
Expand Down

0 comments on commit 736e6fc

Please sign in to comment.