Working on the API
This commit is contained in:
parent
343d76744f
commit
e26bf521e4
1 changed files with 5 additions and 2 deletions
|
|
@ -64,8 +64,11 @@ class AccountApiController extends BaseAPIController
|
|||
{
|
||||
$account = Auth::user()->account;
|
||||
$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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue