Specify available includes for /api/tags endpoint

This commit is contained in:
Dave Shoreman 2017-04-10 23:23:32 +01:00
parent dfe094981b
commit 941a0b2c8a

View File

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