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

Commit 102901f

Browse files
authored
Merge pull request #434 from erlangp/patch-1
Fix 404 url by adding Request getBasePath
2 parents dbb1af7 + 7fc020d commit 102901f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/views/dashboard.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
wssPort: this.port === null ? 6001 : this.port,
119119
wsPath: this.app.path === null ? '' : this.app.path,
120120
disableStats: true,
121-
authEndpoint: '/{{ request()->path() }}/auth',
121+
authEndpoint: '{{ url('/auth') }}',
122122
auth: {
123123
headers: {
124124
'X-CSRF-Token': "{{ csrf_token() }}",
@@ -162,7 +162,7 @@
162162
},
163163
164164
loadChart() {
165-
$.getJSON('/{{ request()->path() }}/api/'+this.app.id+'/statistics', (data) => {
165+
$.getJSON('{{ url('/api') }}/' + this.app.id + '/statistics', (data) => {
166166
167167
let chartData = [
168168
{
@@ -246,7 +246,7 @@
246246
},
247247
248248
sendEvent() {
249-
$.post('/{{ request()->path() }}/event', {
249+
$.post('{{ url('/event') }}', {
250250
_token: '{{ csrf_token() }}',
251251
key: this.app.key,
252252
secret: this.app.secret,

0 commit comments

Comments
 (0)