Skip to content

Commit 6de957c

Browse files
committed
fix swagger documentation
1 parent 2a12be7 commit 6de957c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

config/l5-swagger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@
7979
|--------------------------------------------------------------------------
8080
*/
8181

82-
'api' => 'documentation',
82+
'api' => 'api/documentation',
8383

8484
/*
8585
|--------------------------------------------------------------------------
8686
| Route for accessing parsed swagger annotations.
8787
|--------------------------------------------------------------------------
8888
*/
8989

90-
'docs' => 'docs',
90+
'docs' => 'api/docs',
9191

9292
],
9393

routes/web.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@
1212
*/
1313
Route::get('/{vue_capture?}', function () {
1414
return view('index');
15-
})->where('vue_capture', '[\/\w\.-]*');
15+
})->where('vue_capture', '^[^api]');
16+
#})->where('vue_capture', '[\/\w\.-]*');

0 commit comments

Comments
 (0)