diff --git a/src/modules/tool/tool.controller.ts b/src/modules/tool/tool.controller.ts index f74d7779..a0b6851b 100644 --- a/src/modules/tool/tool.controller.ts +++ b/src/modules/tool/tool.controller.ts @@ -1,4 +1,5 @@ import { CacheTTL, Controller, Get, Param, Query } from '@nestjs/common' +import { Auth } from '~/common/decorator/auth.decorator' import { HttpCache } from '~/common/decorator/cache.decorator' import { ApiName } from '~/common/decorator/openapi.decorator' import { RedisKeys } from '~/constants/cache.constant' @@ -10,6 +11,7 @@ import { ToolService } from './tool.service' @Controller('tools') @ApiName +@Auth() export class ToolController { constructor( private readonly toolService: ToolService,