Merge pull request #38 from dshoreman/include-fix

Specify available includes for /api/tags endpoint
This commit is contained in:
Toby Zerner 2017-04-11 10:38:59 +09:30 committed by GitHub
commit 61321c32ed

View File

@ -24,6 +24,20 @@ class ListTagsController extends AbstractCollectionController
*/ */
public $serializer = TagSerializer::class; public $serializer = TagSerializer::class;
/**
* {@inheritdoc}
*/
public $include = [
'parent',
];
/**
* {@inheritdoc}
*/
public $optionalInclude = [
'lastDiscussion',
];
/** /**
* @var \Flarum\Tags\Tag * @var \Flarum\Tags\Tag
*/ */