export class ImageModule implements NestModule {
configure(consumer: MiddlewareConsumer) {
consumer
.apply(AwsImagesMiddleware)
.forRoutes('dashboard/images/upload-images');
}
}
export class ImageModule implements NestModule {
configure(consumer: MiddlewareConsumer) {
consumer
.apply(AwsImagesMiddleware)
.forRoutes('dashboard/images/upload-images')
.apply(AwsAvatarsMiddleware)
.forRoutes('images/upload-avatar');
}
}