Setting the api group middleware on api routes by default.

Loading vuejs script
parent c6a7d905
...@@ -69,6 +69,7 @@ return [ ...@@ -69,6 +69,7 @@ return [
'frontend' => [ 'frontend' => [
], ],
'api' => [ 'api' => [
'api',
], ],
], ],
...@@ -124,6 +125,7 @@ return [ ...@@ -124,6 +125,7 @@ return [
'moment.js' => ['theme' => 'vendor/admin-lte/plugins/daterangepicker/moment.min.js'], 'moment.js' => ['theme' => 'vendor/admin-lte/plugins/daterangepicker/moment.min.js'],
'clipboard.js' => ['theme' => 'vendor/clipboard/dist/clipboard.min.js'], 'clipboard.js' => ['theme' => 'vendor/clipboard/dist/clipboard.min.js'],
'simplemde.js' => ['theme' => 'vendor/simplemde/dist/simplemde.min.js'], 'simplemde.js' => ['theme' => 'vendor/simplemde/dist/simplemde.min.js'],
'vue-app.js' => ['cdn' => mix('js/app.js')],
], ],
/* /*
...@@ -160,6 +162,7 @@ return [ ...@@ -160,6 +162,7 @@ return [
'pace.js', 'pace.js',
'selectize.js', 'selectize.js',
'main.js', 'main.js',
'vue-app.js',
], ],
], ],
......
...@@ -69,6 +69,7 @@ return [ ...@@ -69,6 +69,7 @@ return [
'frontend' => [ 'frontend' => [
], ],
'api' => [ 'api' => [
'api',
], ],
], ],
...@@ -161,8 +162,7 @@ return [ ...@@ -161,8 +162,7 @@ return [
'pace.js', 'pace.js',
'selectize.js', 'selectize.js',
'main.js', 'main.js',
// Un-comment the vue-app dependency to include VueJS 'vue-app.js',
// 'vue-app.js',
], ],
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment