Split product sitemap and use Farsi category URLs with ids.

sitemap.xml is now an index of main + products; category loc paths use /products/category/{id}/{nameFaSlug} with a public by-id lookup for storefronts.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-23 00:23:30 +03:30
co-authored by Cursor
parent c4367d8eb0
commit ea40ae40d8
13 changed files with 427 additions and 59 deletions
+9
View File
@@ -174,6 +174,15 @@ export class PublicCategoriesController {
return this.service.listPublic(host, query);
}
@Get('by-id/:categoryId')
getById(
@Param('host') host: string,
@Param('categoryId') categoryId: string,
@Query() query: ListCategoriesDto,
) {
return this.service.getPublicById(host, categoryId, query.entityType);
}
@Get('by-slug/:slug')
getBySlug(
@Param('host') host: string,