mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on the API
This commit is contained in:
parent
343d76744f
commit
e26bf521e4
@ -64,8 +64,11 @@ class AccountApiController extends BaseAPIController
|
|||||||
{
|
{
|
||||||
$account = Auth::user()->account;
|
$account = Auth::user()->account;
|
||||||
$account->load('clients.getInvoices.invoice_items', 'users');
|
$account->load('clients.getInvoices.invoice_items', 'users');
|
||||||
|
|
||||||
$response = $this->createItem($account, new AccountTransformer);
|
$account = $this->createItem($account, new AccountTransformer);
|
||||||
|
$response = [
|
||||||
|
'account' => $account
|
||||||
|
];
|
||||||
|
|
||||||
return $this->response($response);
|
return $this->response($response);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user