#add jira & message sync
This commit is contained in:
@@ -7,11 +7,18 @@ use Illuminate\Foundation\Configuration\Middleware;
|
||||
return Application::configure(basePath: dirname(__DIR__))
|
||||
->withRouting(
|
||||
web: __DIR__.'/../routes/web.php',
|
||||
api: __DIR__.'/../routes/api.php',
|
||||
commands: __DIR__.'/../routes/console.php',
|
||||
health: '/up',
|
||||
)
|
||||
->withMiddleware(function (Middleware $middleware): void {
|
||||
//
|
||||
// 为 API 路由添加 CSRF 豁免
|
||||
$middleware->validateCsrfTokens(except: [
|
||||
'api/jira/*',
|
||||
'api/env/*',
|
||||
'api/message-sync/*',
|
||||
'api/message-dispatch/*'
|
||||
]);
|
||||
})
|
||||
->withExceptions(function (Exceptions $exceptions): void {
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user