manghe/app/api/middleware.php
2025-04-25 02:29:18 +08:00

18 lines
609 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// 这是系统自动生成的middleware定义文件
return [
// 域名绑定检查
\app\api\middleware\DomainBind::class,
// 跨域处理中间件
\app\api\middleware\CorsMiddleware::class,
// 响应时间中间件
\app\api\middleware\ResponseTimeMiddleware::class,
// OPTIONS预检请求处理中间件
\app\api\middleware\OptionsRequestMiddleware::class,
//请求签名验证中间件
\app\api\middleware\SignatureVerifyMiddleware::class,
// 注意原来的Allow中间件已被拆分为上面三个专门的中间件不再需要
// \app\api\middleware\Allow::class,
];