use path-to-regexp named wildcard for shop assets route exclude

Silence Nest 11 LegacyRouteConverter warning by replacing shop/assets/(.*) with shop/assets/{*path}.
This commit is contained in:
2026-09-06 11:40:58 +02:00
parent c7ac66a5cd
commit 665362eb32
+1 -1
View File
@@ -61,7 +61,7 @@ async function bootstrap() {
{ path: '/', method: RequestMethod.GET }, { path: '/', method: RequestMethod.GET },
{ path: 'shop/categories/:id', method: RequestMethod.GET }, { path: 'shop/categories/:id', method: RequestMethod.GET },
{ path: 'shop/products/:id/variants/:variantId', 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/preferences/theme', method: RequestMethod.POST },
{ path: 'shop/error', method: RequestMethod.GET }, { path: 'shop/error', method: RequestMethod.GET },
{ path: 'shop/cart', method: RequestMethod.GET }, { path: 'shop/cart', method: RequestMethod.GET },