Files
water_new/config/agent.php
2023-03-08 09:16:04 +08:00

41 lines
991 B
PHP
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
return [
'route' => [
/**
* 可配置 API 独立域名
*/
'domain' => env('AGENT_ROUTE_DOMAIN', ''),
/**
* 不实用独立域名API 地址前缀
*/
'prefix' => env('AGENT_ROUTE_PREFIX', 'agent'),
/**
* API 控制器命名空间
*/
'namespace' => 'App\\Agent\\Controllers',
/**
* API 路由命名前缀
*/
'as' => 'agent.',
/**
* API 默认中间件
*/
'middleware' => ['api', 'api.accept'],
/**
* 身份认证的中间件
*/
'middleware_auth' => ['api', 'api.accept', 'token.auth'],
/**
* 获取token获取不到也不报错的中间件
*/
'middleware_guess' => ['api', 'api.accept', 'token.guess'],
],
/**
* API 目录
*/
'directory' => app_path('Agent'),
];