Skip to content

Commit

Permalink
fix: hide interval endpoints from swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
csuvajit committed Dec 30, 2024
1 parent 844e851 commit 0b9da1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
UnauthorizedException,
} from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { ApiTags } from '@nestjs/swagger';
import { ApiExcludeController, ApiTags } from '@nestjs/swagger';
import {
InteractionResponseFlags,
InteractionResponseType,
Expand All @@ -30,6 +30,7 @@ import { Request, Response } from 'express';
import { Collection } from 'mongodb';

@ApiTags('DISCORD')
@ApiExcludeController()
@Controller({ path: '/' })
export class AppController {
private readonly discordPublicKey: string;
Expand Down
5 changes: 4 additions & 1 deletion src/tasks/tasks.controller.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { ApiKeyGuard } from '@app/auth/guards/api-key-guard';
import { Controller, Get, Post, UseGuards } from '@nestjs/common';
import { ApiExcludeController, ApiTags } from '@nestjs/swagger';
import { CleanupTasksService } from './cleanup.tasks.service';
import { LegendTasksService } from './legend.tasks.service';

@ApiTags('TASKS')
@UseGuards(ApiKeyGuard)
@Controller('tasks')
@Controller('/tasks')
@ApiExcludeController()
export class TasksController {
constructor(
private legendTasksService: LegendTasksService,
Expand Down

0 comments on commit 0b9da1d

Please sign in to comment.