mirror of
https://github.com/CaramelFur/Picsur.git
synced 2026-02-02 04:19:04 +01:00
24 lines
694 B
TypeScript
24 lines
694 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ThrottlerModule } from '@nestjs/throttler';
|
|
import { MainExceptionFilter } from './exception/exception.filter';
|
|
import { SuccessInterceptor } from './success/success.interceptor';
|
|
import { PicsurThrottlerGuard } from './throttler/PicsurThrottler.guard';
|
|
import { ZodValidationPipe } from './validate/zod-validator.pipe';
|
|
|
|
@Module({
|
|
imports: [ThrottlerModule.forRoot()],
|
|
providers: [
|
|
PicsurThrottlerGuard,
|
|
MainExceptionFilter,
|
|
SuccessInterceptor,
|
|
ZodValidationPipe,
|
|
],
|
|
exports: [
|
|
PicsurThrottlerGuard,
|
|
MainExceptionFilter,
|
|
SuccessInterceptor,
|
|
ZodValidationPipe,
|
|
],
|
|
})
|
|
export class PicsurLayersModule {}
|