#add jira & message sync

This commit is contained in:
2025-12-02 10:16:32 +08:00
parent 5c4492d8f8
commit 2ec44b5665
49 changed files with 6633 additions and 1209 deletions

View File

@@ -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 {
//

View File

@@ -2,5 +2,6 @@
return [
App\Providers\AppServiceProvider::class,
App\Providers\ClientServiceProvider::class,
App\Providers\EnvServiceProvider::class,
];