mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 06:53:47 +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;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public $include = [
|
||||
'parent',
|
||||
];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public $optionalInclude = [
|
||||
'lastDiscussion',
|
||||
];
|
||||
|
||||
/**
|
||||
* @var \Flarum\Tags\Tag
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user