formatting

This commit is contained in:
denisdulici
2019-12-18 15:29:59 +03:00
parent 4914e34f6c
commit 2a35ffe2ec
2 changed files with 18 additions and 25 deletions

View File

@ -16,7 +16,7 @@ trait SiteApi
$headers['headers'] = [
'Authorization' => 'Bearer ' . setting('apps.api_key'),
'Accept' => 'application/json',
'Referer' => url('/'),
'Referer' => app()->runningInConsole() ? config('app.url') : url('/'),
'Akaunting' => version('short'),
'Language' => language()->getShortCode(),
];