Include user in post creation response

This commit is contained in:
Toby Zerner 2015-05-14 22:35:10 +09:30
parent 9284db5076
commit c5420ef7df

View File

@ -21,6 +21,10 @@ class CreateAction extends BaseCreateAction
*/ */
public static $serializer = 'Flarum\Api\Serializers\PostSerializer'; public static $serializer = 'Flarum\Api\Serializers\PostSerializer';
public static $include = [
'user' => true
];
/** /**
* Instantiate the action. * Instantiate the action.
* *