Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Fixed the urls for the dashboard API calls
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Aug 13, 2020
1 parent 679a8d0 commit 8383054
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/views/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
wssPort: this.port === null ? 6001 : this.port,
wsPath: this.app.path === null ? '' : this.app.path,
disableStats: true,
authEndpoint: '{{ url('/auth') }}',
authEndpoint: '{{ url(request()->path().'/auth') }}',
auth: {
headers: {
'X-CSRF-Token': "{{ csrf_token() }}",
Expand Down Expand Up @@ -162,7 +162,7 @@
},
loadChart() {
$.getJSON('{{ url('/api') }}/' + this.app.id + '/statistics', (data) => {
$.getJSON('{{ url(request()->path().'/api') }}/' + this.app.id + '/statistics', (data) => {
let chartData = [
{
Expand Down Expand Up @@ -246,7 +246,7 @@
},
sendEvent() {
$.post('{{ url('/event') }}', {
$.post('{{ url(request()->path().'/event') }}', {
_token: '{{ csrf_token() }}',
key: this.app.key,
secret: this.app.secret,
Expand Down

0 comments on commit 8383054

Please sign in to comment.