Files
hyperf_service/config/autoload/middlewares.php
2024-11-07 09:12:00 +08:00

22 lines
432 B
PHP

<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
use App\Middleware\CorsMiddleware;
use Hyperf\Validation\Middleware\ValidationMiddleware;
return [
'http' => [
CorsMiddleware::class,
ValidationMiddleware::class
],
];