mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 05:13:37 +08:00
Merge pull request #38 from dshoreman/include-fix
Specify available includes for /api/tags endpoint
This commit is contained in:
commit
61321c32ed
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user