mirror of
https://gitee.com/mix-php/mix.git
synced 2024-12-03 12:17:39 +08:00
feat:examples: 默认注释中间件,便于测试
This commit is contained in:
parent
2eb6cb105a
commit
fa4064953f
@ -7,6 +7,6 @@ use App\Middleware\AuthMiddleware;
|
||||
|
||||
return function (Mix\Vega\Engine $vega) {
|
||||
$vega->handle('/hello', [new Hello(), 'index'])->methods('GET');
|
||||
$vega->handle('/users/{id}', AuthMiddleware::callback(), [new Users(), 'index'])->methods('GET');
|
||||
$vega->handle('/users/{id}', /* AuthMiddleware::callback(), */ [new Users(), 'index'])->methods('GET');
|
||||
$vega->handle('/auth', [new Auth(), 'index'])->methods('GET');
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user