From 665362eb32b6ad5a22e794e5cccadcacd2507d8d Mon Sep 17 00:00:00 2001 From: nobswebdev Date: Sun, 6 Sep 2026 11:40:58 +0200 Subject: [PATCH] use path-to-regexp named wildcard for shop assets route exclude Silence Nest 11 LegacyRouteConverter warning by replacing shop/assets/(.*) with shop/assets/{*path}. --- backend/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main.ts b/backend/src/main.ts index f427162..84afdc1 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -61,7 +61,7 @@ async function bootstrap() { { path: '/', method: RequestMethod.GET }, { path: 'shop/categories/:id', method: RequestMethod.GET }, { path: 'shop/products/:id/variants/:variantId', method: RequestMethod.GET }, - { path: 'shop/assets/(.*)', method: RequestMethod.GET }, + { path: 'shop/assets/{*path}', method: RequestMethod.GET }, { path: 'shop/preferences/theme', method: RequestMethod.POST }, { path: 'shop/error', method: RequestMethod.GET }, { path: 'shop/cart', method: RequestMethod.GET },