mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 00:14:31 -04:00
Working on products api
This commit is contained in:
parent
1f36e175dd
commit
43c6024f0f
@ -34,7 +34,7 @@ class ProductApiController extends BaseAPIController
|
||||
|
||||
$products = Product::scope()->withTrashed()->paginate();
|
||||
$transformer = new ProductTransformer(\Auth::user()->account, $this->serializer);
|
||||
$data = $this->includeCollection($products, $transformer, 'products');
|
||||
$data = $this->createCollection($products, $transformer, 'products');
|
||||
|
||||
return $this->response($data);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user