hyperfk8s/routes/index.php

17 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('/index', [IndexController::class, 'index']);
}, [
'middleware' => [
]
]);