1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Working on the API

This commit is contained in:
Hillel Coren 2015-11-10 09:13:40 +02:00
parent 343d76744f
commit e26bf521e4

View File

@ -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);
}