ApiAdmin/app/middleware/ApiResponse.php
2020-10-13 00:44:24 +08:00

14 lines
248 B
PHP

<?php
declare (strict_types=1);
namespace app\middleware;
use think\facade\Config;
class ApiResponse {
public function handle($request, \Closure $next) {
return $next($request)->header(Config::get('apiadmin.CROSS_DOMAIN'));
}
}