From dca821e75c8401efb745648556ff5ab836dfe6a3 Mon Sep 17 00:00:00 2001 From: Kenrick Tandrian <60643640+KenTandrian@users.noreply.github.com> Date: Sun, 22 Jun 2025 00:22:36 +0700 Subject: [PATCH] Bugfix/resolve LegacyRouteConverter warning on startup (#4980) * Resolve LegacyRouteConverter warning on startup * Update changelog --- CHANGELOG.md | 1 + apps/api/src/app/app.module.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40d44933c..018a7cede 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed an issue in the `HtmlTemplateMiddleware` related to incorrect variable resolution +- Eliminated the _Unsupported route path_ warning of the `LegacyRouteConverter` on startup ## 2.172.0 - 2025-06-19 diff --git a/apps/api/src/app/app.module.ts b/apps/api/src/app/app.module.ts index 7e9704183..1c48b9702 100644 --- a/apps/api/src/app/app.module.ts +++ b/apps/api/src/app/app.module.ts @@ -141,6 +141,6 @@ import { UserModule } from './user/user.module'; }) export class AppModule implements NestModule { public configure(consumer: MiddlewareConsumer) { - consumer.apply(HtmlTemplateMiddleware).forRoutes('*'); + consumer.apply(HtmlTemplateMiddleware).forRoutes('*wildcard'); } }