chore(server): update dependencies and add API tags to

controllers
This commit is contained in:
Amruth Pillai
2023-11-05 19:15:21 +01:00
parent e964965d59
commit 4f5ccb9ab8
10 changed files with 270 additions and 15 deletions

View File

@ -1,5 +1,6 @@
import { CacheInterceptor, CacheKey, CacheTTL } from "@nestjs/cache-manager";
import { Controller, Get, NotFoundException, UseInterceptors } from "@nestjs/common";
import { ApiTags } from "@nestjs/swagger";
import { HealthCheck, HealthCheckService } from "@nestjs/terminus";
import { RedisService } from "@songkeys/nestjs-redis";
import { RedisHealthIndicator } from "@songkeys/nestjs-redis-health";
@ -9,6 +10,7 @@ import { BrowserHealthIndicator } from "./browser.health";
import { DatabaseHealthIndicator } from "./database.health";
import { StorageHealthIndicator } from "./storage.health";
@ApiTags("Health")
@Controller("health")
export class HealthController {
constructor(

View File

@ -7,12 +7,14 @@ import {
UseInterceptors,
} from "@nestjs/common";
import { FileInterceptor } from "@nestjs/platform-express";
import { ApiTags } from "@nestjs/swagger";
import { TwoFactorGuard } from "@/server/auth/guards/two-factor.guard";
import { User } from "@/server/user/decorators/user.decorator";
import { StorageService } from "./storage.service";
@ApiTags("Storage")
@Controller("storage")
export class StorageController {
constructor(private readonly storageService: StorageService) {}