swagger setup

This commit is contained in:
glovetleong
2021-08-08 14:39:09 +08:00
parent 7488389233
commit 051d66c257
12 changed files with 1756 additions and 942 deletions
+4
View File
@@ -5,3 +5,7 @@ use Illuminate\Support\Facades\Route;
Route::get('unauthorized', ['as' => 'unauthorized', function() {
return response('Unauthorized Access', 401);
}]);
Route::group(['prefix' => 'swagger-doc'], function () {
Route::get('/', ['as' => 'swagger.app', 'uses' => 'SwaggerController@index']);
});