mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on products api
This commit is contained in:
parent
63894e0f24
commit
204748ad33
@ -29,8 +29,6 @@ class ProductApiController extends BaseAPIController
|
|||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
//$products = Product::scope()->withTrashed()->orderBy('created_at', 'desc')->paginate();
|
|
||||||
//$products = $products
|
|
||||||
|
|
||||||
$products = Product::scope()->withTrashed();
|
$products = Product::scope()->withTrashed();
|
||||||
$products = $products->paginate();
|
$products = $products->paginate();
|
||||||
@ -49,12 +47,6 @@ class ProductApiController extends BaseAPIController
|
|||||||
return $this->productService->getDatatable(Auth::user()->account_id);
|
return $this->productService->getDatatable(Auth::user()->account_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function edit($publicId)
|
|
||||||
{
|
|
||||||
//stub
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function store()
|
public function store()
|
||||||
{
|
{
|
||||||
return $this->save();
|
return $this->save();
|
||||||
@ -65,7 +57,7 @@ class ProductApiController extends BaseAPIController
|
|||||||
return $this->save($publicId);
|
return $this->save($publicId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function destroy()
|
public function destroy($publicId)
|
||||||
{
|
{
|
||||||
//stub
|
//stub
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user