dootask/app/Http/Middleware/VerifyCsrfToken.php
2021-06-13 23:10:55 +08:00

37 lines
728 B
PHP

<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
// 上传图片
'api/system/imgupload/',
// 上传文件
'api/system/fileupload/',
// 保存任务优先级
'api/system/priority/',
// 添加任务
'api/project/task/add/',
// 修改任务
'api/project/task/update/',
// 上传任务问题
'api/project/task/upload/',
// 聊天发文件
'api/dialog/msg/sendfile/',
];
}