Merge branch 'security/sakuin/guards-controllers'
Some checks failed
CI/CD — Build & Deploy / Build & Deploy (push) Failing after 14s
Some checks failed
CI/CD — Build & Deploy / Build & Deploy (push) Failing after 14s
# Conflicts: # backend/src/work/work.controller.ts
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
import { Controller, Get, Query } from '@nestjs/common';
|
||||
import { Controller, Get, Query, UseGuards } from '@nestjs/common';
|
||||
import { Throttle } from '@nestjs/throttler';
|
||||
import { AuthGuard } from '../auth/auth.guard';
|
||||
import { Public } from '../auth/public.decorator';
|
||||
import { WorkService } from './work.service';
|
||||
|
||||
@UseGuards(AuthGuard)
|
||||
@Controller('api/works')
|
||||
export class WorkController {
|
||||
constructor(private readonly workService: WorkService) {}
|
||||
|
||||
@Public()
|
||||
@Throttle([{ ttl: 60000, limit: 20 }])
|
||||
@Get('search')
|
||||
async search(
|
||||
|
||||
Reference in New Issue
Block a user