初始化本地仓库
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Webman\Route;
|
||||
use WebmanTech\Swagger\Swagger;
|
||||
use OpenApi\Annotations as OA;
|
||||
|
||||
//Route::group('/install', function () {
|
||||
// Swagger::create()->registerRoute([
|
||||
// 'route_prefix' => '/openapi',
|
||||
// 'register_route' => true,
|
||||
// 'openapi_doc' => [
|
||||
// 'scan_path' => [
|
||||
// base_path('app/install'),
|
||||
// ],
|
||||
// 'modify' => function (OA\OpenApi $openapi) {
|
||||
// $openapi->info->title = config('app.name') . ' API';
|
||||
// $openapi->info->version = '1.0.0';
|
||||
// $openapi->servers = [
|
||||
// new OA\Server(
|
||||
// [
|
||||
// 'url' => '/install',
|
||||
// 'description' => request()->host(),
|
||||
// ]
|
||||
// ),
|
||||
// ];
|
||||
// },
|
||||
//
|
||||
// ],
|
||||
// ]);
|
||||
//});
|
||||
|
||||
|
||||
// 安装模块API路由
|
||||
//Route::any('/install/api', [app\install\controller\Index::class, 'index']);
|
||||
Reference in New Issue
Block a user