mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
25 lines
444 B
PHP
25 lines
444 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/*',
|
|
|
|
// 保存配置
|
|
'storage/synch/',
|
|
|
|
// 发布桌面端
|
|
'desktop/publish/',
|
|
];
|
|
}
|