📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Added filter and pipe to controller
Yevhenii Kulisidie006bdba5b02
diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.tsindex 00ea8b861..c29484098 100644--- a/src/auth/auth.controller.ts+++ b/src/auth/auth.controller.ts@@ -1,6 +1,21 @@-import { Controller } from '@nestjs/common'+import {+ Controller,+ UseFilters,+ UsePipes,+ ValidationPipe,+} from '@nestjs/common'import { ApiTags } from '@nestjs/swagger'+import { I18nValidationExceptionFilter } from 'nestjs-i18n'@ApiTags('Auth')@Controller('auth')+@UseFilters(new I18nValidationExceptionFilter())+@UsePipes(+ new ValidationPipe({+ forbidNonWhitelisted: true,+ forbidUnknownValues: true,+ transform: true,+ whitelist: true,+ }),+)export class AuthController {}