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:
co-authored by
Cursor
parent
c4367d8eb0
commit
ea40ae40d8
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user