Files
MrleeAdmin/backend/app/install/config/route.php
T

35 lines
1.0 KiB
PHP
Raw Normal View History

2026-08-31 11:33:59 +08:00
<?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']);