feat: add type
This commit is contained in:
@@ -80,6 +80,7 @@ public function grouped($id)
|
|||||||
'title' => $category->name,
|
'title' => $category->name,
|
||||||
'description' => $category->description,
|
'description' => $category->description,
|
||||||
'icon_url' => $category->icon_url,
|
'icon_url' => $category->icon_url,
|
||||||
|
'type' => $category->type,
|
||||||
],
|
],
|
||||||
'sub_categories' => $category->subcategories->map(fn ($sub) => [
|
'sub_categories' => $category->subcategories->map(fn ($sub) => [
|
||||||
'sub_category' => [
|
'sub_category' => [
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ public function grouped($id)
|
|||||||
'title' => $category->name,
|
'title' => $category->name,
|
||||||
'description' => $category->description,
|
'description' => $category->description,
|
||||||
'image_url' => $category->image?->url,
|
'image_url' => $category->image?->url,
|
||||||
|
'type' => 'playlist',
|
||||||
],
|
],
|
||||||
'sub_categories' => $category->subcategories->map(fn ($sub) => [
|
'sub_categories' => $category->subcategories->map(fn ($sub) => [
|
||||||
'sub_category' => [
|
'sub_category' => [
|
||||||
|
|||||||
Reference in New Issue
Block a user