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

Commit 2bc8335

Browse files
committed
Fix jsroutes default params
1 parent ce7fa16 commit 2bc8335

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/config/jsroutes.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
<?php
22

33
return [
4-
'path' => './',
54
'name' => 'routes.js',
65
'include' => [
7-
'boss.bye'
6+
//
87
],
98
'exclude' => [
10-
'telescope'
9+
//
1110
],
1211
'methods' => [
13-
'GET'
12+
//
1413
],
1514
];

tests/CreateJSRoutesCommandTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ protected function getEnvironmentSetUp($app)
5050
$app['router']->get('multi/{id}/param/{id2}/url/{id}', function () {
5151
return 'goodbye world';
5252
})->name('multiparam');
53+
54+
$app['config']->set('jsroutes.path', './');
5355
}
5456

5557
public function test_can_create_file()

0 commit comments

Comments
 (0)