@@ -94,22 +94,22 @@ private function registerRoutes(Router $router): void
9494 }
9595
9696 $ router ->post ('cloud-tasks-api/login ' , [CloudTasksApiController::class, 'login ' ])->name ('cloud-tasks.api.login ' );
97- $ router ->middleware (Authenticate::class)->group (function () use ($ router ) {
98- $ router ->get ('cloud-tasks/{view?} ' , function () {
99- return view ('cloud-tasks::layout ' , [
100- 'manifest ' => json_decode (file_get_contents (public_path ('vendor/cloud-tasks/manifest.json ' )), true ),
101- 'isDownForMaintenance ' => app ()->isDownForMaintenance (),
102- 'cloudTasksScriptVariables ' => [
103- 'path ' => 'cloud-tasks ' ,
104- ],
105- ]);
106- })->where (
107- 'view ' ,
108- '(.+) '
109- )->name (
110- 'cloud-tasks.index '
111- );
97+ $ router ->get ('cloud-tasks/{view?} ' , function () {
98+ return view ('cloud-tasks::layout ' , [
99+ 'manifest ' => json_decode (file_get_contents (public_path ('vendor/cloud-tasks/manifest.json ' )), true ),
100+ 'isDownForMaintenance ' => app ()->isDownForMaintenance (),
101+ 'cloudTasksScriptVariables ' => [
102+ 'path ' => 'cloud-tasks ' ,
103+ ],
104+ ]);
105+ })->where (
106+ 'view ' ,
107+ '(.+) '
108+ )->name (
109+ 'cloud-tasks.index '
110+ );
112111
112+ $ router ->middleware (Authenticate::class)->group (function () use ($ router ) {
113113 $ router ->get ('cloud-tasks-api/dashboard ' , [CloudTasksApiController::class, 'dashboard ' ])->name ('cloud-tasks.api.dashboard ' );
114114 $ router ->get ('cloud-tasks-api/tasks ' , [CloudTasksApiController::class, 'tasks ' ])->name ('cloud-tasks.api.tasks ' );
115115 $ router ->get ('cloud-tasks-api/task/{uuid} ' , [CloudTasksApiController::class, 'task ' ])->name ('cloud-tasks.api.task ' );
0 commit comments