hyperfk8s/routes/test/test.php

18 lines
314 B
PHP
Executable File

<?php
declare(strict_types=1);
use App\Controller\Index\IndexController;
//use App\Middleware\AuthMiddleware;
use Hyperf\HttpServer\Router\Router;
Router::addGroup('/api/learn', function () {
# 资料列表
Router::get('/test', [IndexController::class, 'index']);
}, [
'middleware' => [
]
]);