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