diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 4a503a1..f19b83e 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -118,7 +118,7 @@ wssPort: this.port === null ? 6001 : this.port, wsPath: this.app.path === null ? '' : this.app.path, disableStats: true, - authEndpoint: '/{{ request()->getBasePath() }}/auth', + authEndpoint: '{{ request()->getBasePath() }}/{{ request()->path() }}/auth', auth: { headers: { 'X-CSRF-Token': "{{ csrf_token() }}", @@ -162,7 +162,7 @@ }, loadChart() { - $.getJSON('/{{ request()->getBasePath() }}/api/'+this.app.id+'/statistics', (data) => { + $.getJSON('{{ request()->getBasePath() }}/{{ request()->path() }}/api/'+this.app.id+'/statistics', (data) => { let chartData = [ { @@ -246,7 +246,7 @@ }, sendEvent() { - $.post('/{{ request()->getBasePath() }}/event', { + $.post('{{ request()->getBasePath() }}/{{ request()->path() }}/event', { _token: '{{ csrf_token() }}', key: this.app.key, secret: this.app.secret,