@@ -28,7 +28,7 @@ |
||
28 | 28 | $this->prefix('components')->name('components.')->group(function () { |
29 | 29 | // admin::api.components.handle |
30 | 30 | $this->post('/', [ComponentsController::class, 'handle']) |
31 | - ->name('handle'); |
|
31 | + ->name('handle'); |
|
32 | 32 | }); |
33 | 33 | } |
34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $this->prefix('metrics')->name('metrics.')->group(function () { |
29 | 29 | // admin::api.metrics.handle |
30 | 30 | $this->post('/', [MetricsController::class, 'handle']) |
31 | - ->name('handle'); |
|
31 | + ->name('handle'); |
|
32 | 32 | }); |
33 | 33 | } |
34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $this->prefix('events')->name('events.')->group(function () { |
29 | 29 | // admin::api.events.handle |
30 | 30 | $this->post('/', [EventsController::class, 'handle']) |
31 | - ->name('handle'); |
|
31 | + ->name('handle'); |
|
32 | 32 | }); |
33 | 33 | } |
34 | 34 | } |
@@ -34,6 +34,6 @@ |
||
34 | 34 | { |
35 | 35 | // admin::index |
36 | 36 | $this->get('/', [DashboardController::class, 'index']) |
37 | - ->name('index'); |
|
37 | + ->name('index'); |
|
38 | 38 | } |
39 | 39 | } |
@@ -33,17 +33,17 @@ |
||
33 | 33 | public function map(): void |
34 | 34 | { |
35 | 35 | $this->prefix('password/confirm') |
36 | - ->name('password.confirm.') |
|
37 | - ->middleware(['arcanesoft']) |
|
38 | - ->group(function () { |
|
39 | - // admin::auth.password.confirm.create |
|
40 | - $this->get('/', [ConfirmPasswordController::class, 'create']) |
|
41 | - ->name('create'); |
|
42 | - |
|
43 | - // admin::auth.password.confirm.store |
|
44 | - $this->post('/', [ConfirmPasswordController::class, 'store']) |
|
45 | - ->name('store'); |
|
46 | - }); |
|
36 | + ->name('password.confirm.') |
|
37 | + ->middleware(['arcanesoft']) |
|
38 | + ->group(function () { |
|
39 | + // admin::auth.password.confirm.create |
|
40 | + $this->get('/', [ConfirmPasswordController::class, 'create']) |
|
41 | + ->name('create'); |
|
42 | + |
|
43 | + // admin::auth.password.confirm.store |
|
44 | + $this->post('/', [ConfirmPasswordController::class, 'store']) |
|
45 | + ->name('store'); |
|
46 | + }); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | } |
@@ -35,24 +35,24 @@ |
||
35 | 35 | public function map(): void |
36 | 36 | { |
37 | 37 | $this->prefix('password') |
38 | - ->name('password.') |
|
39 | - ->middleware(['guest']) |
|
40 | - ->group(function () { |
|
41 | - // admin::auth.password.request |
|
42 | - $this->get('forgotten', [PasswordResetLinkController::class, 'create']) |
|
43 | - ->name('request'); |
|
44 | - |
|
45 | - // admin::auth.password.email |
|
46 | - $this->post('forgotten', [PasswordResetLinkController::class, 'store']) |
|
47 | - ->name('email'); |
|
48 | - |
|
49 | - // admin::auth.password.reset |
|
50 | - $this->get('reset/{token}', [ResetPasswordController::class, 'edit']) |
|
51 | - ->name('reset'); |
|
52 | - |
|
53 | - // admin::auth.password.update |
|
54 | - $this->post('reset', [ResetPasswordController::class, 'update']) |
|
55 | - ->name('update'); |
|
56 | - }); |
|
38 | + ->name('password.') |
|
39 | + ->middleware(['guest']) |
|
40 | + ->group(function () { |
|
41 | + // admin::auth.password.request |
|
42 | + $this->get('forgotten', [PasswordResetLinkController::class, 'create']) |
|
43 | + ->name('request'); |
|
44 | + |
|
45 | + // admin::auth.password.email |
|
46 | + $this->post('forgotten', [PasswordResetLinkController::class, 'store']) |
|
47 | + ->name('email'); |
|
48 | + |
|
49 | + // admin::auth.password.reset |
|
50 | + $this->get('reset/{token}', [ResetPasswordController::class, 'edit']) |
|
51 | + ->name('reset'); |
|
52 | + |
|
53 | + // admin::auth.password.update |
|
54 | + $this->post('reset', [ResetPasswordController::class, 'update']) |
|
55 | + ->name('update'); |
|
56 | + }); |
|
57 | 57 | } |
58 | 58 | } |
@@ -53,12 +53,12 @@ discard block |
||
53 | 53 | $this->prefix('login')->name('login.')->middleware(['guest'])->group(function () { |
54 | 54 | // admin::auth.login.create |
55 | 55 | $this->get('/', [LoginController::class, 'create']) |
56 | - ->name('create'); |
|
56 | + ->name('create'); |
|
57 | 57 | |
58 | 58 | // admin::auth.login.store |
59 | 59 | $this->post('/', [LoginController::class, 'store']) |
60 | - ->middleware([LoginRateLimiter::middleware()]) |
|
61 | - ->name('store'); |
|
60 | + ->middleware([LoginRateLimiter::middleware()]) |
|
61 | + ->name('store'); |
|
62 | 62 | }); |
63 | 63 | } |
64 | 64 | |
@@ -88,6 +88,6 @@ discard block |
||
88 | 88 | { |
89 | 89 | // admin::auth.logout |
90 | 90 | $this->delete('logout', [LoginController::class, 'destroy']) |
91 | - ->name('logout'); |
|
91 | + ->name('logout'); |
|
92 | 92 | } |
93 | 93 | } |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | protected function adminGroup(Closure $callback): void |
69 | 69 | { |
70 | 70 | $this->prefix($this->getAdminPrefix()) |
71 | - ->middleware($this->getAdminMiddleware()) |
|
72 | - ->name($this->getAdminName()) |
|
73 | - ->group($this->prepareModuleCallback($callback)); |
|
71 | + ->middleware($this->getAdminMiddleware()) |
|
72 | + ->name($this->getAdminName()) |
|
73 | + ->group($this->prepareModuleCallback($callback)); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | { |
83 | 83 | $this->adminGroup(function () use ($callback) { |
84 | 84 | $this->prefix('api') |
85 | - ->name('api.') |
|
86 | - ->middleware(['ajax']) |
|
87 | - ->group($callback); |
|
85 | + ->name('api.') |
|
86 | + ->middleware(['ajax']) |
|
87 | + ->group($callback); |
|
88 | 88 | }); |
89 | 89 | } |
90 | 90 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $this->prefix('routes-viewer')->name('routes-viewer.')->group(function () { |
28 | 28 | // admin::system.routes-viewer.index |
29 | 29 | $this->get('/', [RoutesViewerController::class, 'index']) |
30 | - ->name('index'); |
|
30 | + ->name('index'); |
|
31 | 31 | }); |
32 | 32 | } |
33 | 33 | } |