fix: add auth on tool controller
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user