Skip to content

Commit

Permalink
Merge pull request #212 from Hexastack/211-issue-remove-unused-v1-dto…
Browse files Browse the repository at this point in the history
…-middleware-logic

fix(api): remove unused v1 dto middleware logic
  • Loading branch information
marrouchi authored Oct 15, 2024
2 parents 2dae5c3 + 096f0c2 commit 693a8db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
11 changes: 2 additions & 9 deletions api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import path from 'path';

import { CacheModule } from '@nestjs/cache-manager';
import { MiddlewareConsumer, Module, RequestMethod } from '@nestjs/common';
import { Module } from '@nestjs/common';
import { APP_GUARD } from '@nestjs/core';
import { EventEmitterModule } from '@nestjs/event-emitter';
import { MongooseModule } from '@nestjs/mongoose';
Expand All @@ -33,7 +33,6 @@ import { CmsModule } from './cms/cms.module';
import { config } from './config';
import { I18nModule } from './i18n/i18n.module';
import { LoggerModule } from './logger/logger.module';
import { DtoUpdateMiddleware } from './middlewares/dto.update.middleware';
import { NlpModule } from './nlp/nlp.module';
import { PluginsModule } from './plugins/plugins.module';
import { SettingModule } from './setting/setting.module';
Expand Down Expand Up @@ -133,10 +132,4 @@ const i18nOptions: I18nOptions = {
AppService,
],
})
export class AppModule {
configure(consumer: MiddlewareConsumer) {
consumer
.apply(DtoUpdateMiddleware)
.forRoutes({ path: '*', method: RequestMethod.PATCH });
}
}
export class AppModule {}
21 changes: 0 additions & 21 deletions api/src/middlewares/dto.update.middleware.ts

This file was deleted.

0 comments on commit 693a8db

Please sign in to comment.