Merge pull request #802 from openclassify/vedat

added category slug && create url
This commit is contained in:
Muammer Top 2020-11-19 16:21:09 +03:00 committed by GitHub
commit 1a2e1ba3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,8 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
$data[] = array(
'id' => $cat->id,
'name' => $cat->name,
'parents' => $link
'parents' => $link,
'slug' => $cat->slug
);
}
return $data;