Skip to content

Commit

Permalink
add global ts-rest validation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Oct 12, 2024
1 parent ab54ff5 commit 75ad021
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ import { ApiEventsModule } from '@api/modules/api-events/api-events.module';
import { UsersModule } from '@api/modules/users/users.module';
import { APP_FILTER } from '@nestjs/core';
import { AllExceptionsFilter } from '@api/filters/all-exceptions.exception.filter';
import { TsRestModule } from '@ts-rest/nest';

@Module({
imports: [
TsRestModule.register({
validateRequestQuery: true,
validateRequestBody: true,
isGlobal: true,
}),
ApiConfigModule,
AuthModule,
NotificationsModule,
Expand Down

0 comments on commit 75ad021

Please sign in to comment.