Files
nexusphp/app/Http/Middleware/VerifyCsrfToken.php

19 lines
379 B
PHP
Raw Normal View History

2021-04-02 19:48:41 +08:00
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
2024-04-01 21:39:43 +08:00
const TG_WEBHOOK_PREFIX = "tg-webhook";
2021-04-02 19:48:41 +08:00
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
2024-04-01 21:39:43 +08:00
self::TG_WEBHOOK_PREFIX . "/*"
2021-04-02 19:48:41 +08:00
];
}