replace url to route

This commit is contained in:
Cüneyt Şentürk
2020-08-11 16:52:10 +03:00
parent deee58af52
commit 10bd79ad7a
28 changed files with 41 additions and 35 deletions

View File

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