Test compose

This commit is contained in:
LeoMortari
2025-09-15 00:50:45 -03:00
parent a9c9675168
commit 8f9deb20e2
5 changed files with 11 additions and 9 deletions

View File

@@ -9,6 +9,7 @@ import { VideosController } from './videos/videos.controller';
import { UsuariosModule } from './usuarios/usuarios.module';
import { LoggerMiddleware } from './middleware/logger.middleware';
import { RolesGuard } from './auth/roles.guard';
import { AuthController } from './auth/auth.controller';
@Module({
imports: [
@@ -24,5 +25,6 @@ import { RolesGuard } from './auth/roles.guard';
export class AppModule {
configure(consumer: MiddlewareConsumer) {
consumer.apply(LoggerMiddleware).forRoutes(VideosController);
consumer.apply(LoggerMiddleware).forRoutes(AuthController);
}
}