Skip to content

Commit 33b4a1f

Browse files
committed
Move main cloud tasks view outside of auth middleware
1 parent 1a84c7a commit 33b4a1f

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/CloudTasksServiceProvider.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)