withRouting( web: __DIR__.'/../routes/web.php', commands: __DIR__.'/../routes/console.php', health: '/up', then: function () { \Illuminate\Support\Facades\Route::middleware('api')->group(base_path('content-center/routes.php')); }, ) ->withMiddleware(function (Middleware $middleware) { $middleware->append(\App\ContentCenter\ProtectLegacyImport::class); $middleware->alias([ //'test' => \App\Http\Middleware\Test::class, ]); $middleware->validateCsrfTokens(except: [ 'api/*', 'cmd/*', ]); }) ->withExceptions(function (Exceptions $exceptions) { // })->create();