Include product category URLs in sitemaps and document by-slug lookup.

Adds /products/category/{slug} to default sitemap generation and a public categories/by-slug endpoint for storefront category pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-23 00:15:26 +03:30
co-authored by Cursor
parent df17925d3a
commit c4367d8eb0
15 changed files with 182 additions and 10 deletions
+9
View File
@@ -173,4 +173,13 @@ export class PublicCategoriesController {
list(@Param('host') host: string, @Query() query: ListCategoriesDto) {
return this.service.listPublic(host, query);
}
@Get('by-slug/:slug')
getBySlug(
@Param('host') host: string,
@Param('slug') slug: string,
@Query() query: ListCategoriesDto,
) {
return this.service.getPublicBySlug(host, slug, query.entityType);
}
}