replace url to route
This commit is contained in:
@ -52,7 +52,7 @@ class Accounts extends ApiController
|
||||
{
|
||||
$account = $this->dispatch(new CreateAccount($request));
|
||||
|
||||
return $this->response->created(url('api/accounts/' . $account->id));
|
||||
return $this->response->created(route('api.accounts.show', $account->id));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -45,7 +45,7 @@ class Reconciliations extends ApiController
|
||||
{
|
||||
$reconciliation = $this->dispatch(new CreateReconciliation($request));
|
||||
|
||||
return $this->response->created(url('api/reconciliations/' . $reconciliation->id));
|
||||
return $this->response->created(route('api.reconciliations.show', $reconciliation->id));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -45,7 +45,7 @@ class Transactions extends ApiController
|
||||
{
|
||||
$transaction = $this->dispatch(new CreateTransaction($request));
|
||||
|
||||
return $this->response->created(url('api/transactions/' . $transaction->id));
|
||||
return $this->response->created(route('api.transactions.show', $transaction->id));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,7 +75,7 @@ class Transfers extends ApiController
|
||||
{
|
||||
$transfer = $this->dispatch(new CreateTransfer($request));
|
||||
|
||||
return $this->response->created(url('api/transfers/' . $transfer->id));
|
||||
return $this->response->created(route('api.transfers.show', $transfer->id));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user