Fixed the urls for the dashboard API calls

This commit is contained in:
Alex Renoki 2020-08-13 15:21:55 +03:00
parent 679a8d097a
commit 83830548fd
1 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@
wssPort: this.port === null ? 6001 : this.port, wssPort: this.port === null ? 6001 : this.port,
wsPath: this.app.path === null ? '' : this.app.path, wsPath: this.app.path === null ? '' : this.app.path,
disableStats: true, disableStats: true,
authEndpoint: '{{ url('/auth') }}', authEndpoint: '{{ url(request()->path().'/auth') }}',
auth: { auth: {
headers: { headers: {
'X-CSRF-Token': "{{ csrf_token() }}", 'X-CSRF-Token': "{{ csrf_token() }}",
@ -162,7 +162,7 @@
}, },
loadChart() { loadChart() {
$.getJSON('{{ url('/api') }}/' + this.app.id + '/statistics', (data) => { $.getJSON('{{ url(request()->path().'/api') }}/' + this.app.id + '/statistics', (data) => {
let chartData = [ let chartData = [
{ {
@ -246,7 +246,7 @@
}, },
sendEvent() { sendEvent() {
$.post('{{ url('/event') }}', { $.post('{{ url(request()->path().'/event') }}', {
_token: '{{ csrf_token() }}', _token: '{{ csrf_token() }}',
key: this.app.key, key: this.app.key,
secret: this.app.secret, secret: this.app.secret,