@@ -38,10 +38,10 @@ discard block |
||
38 | 38 | return; |
39 | 39 | } |
40 | 40 | |
41 | - app()->booted(function () { |
|
41 | + app()->booted(function() { |
|
42 | 42 | $routeName = config('chief.route.name'); |
43 | 43 | |
44 | - Route::get('{slug?}', function ($slug = '/') { |
|
44 | + Route::get('{slug?}', function($slug = '/') { |
|
45 | 45 | return ChiefResponse::fromSlug($slug); |
46 | 46 | })->name($routeName) |
47 | 47 | ->where('slug', '(.*)?') |
@@ -51,15 +51,15 @@ discard block |
||
51 | 51 | |
52 | 52 | private function loadOpenAdminRoutes(): void |
53 | 53 | { |
54 | - Route::group(['prefix' => config('chief.route.prefix', 'admin'), 'middleware' => ['web']], function () { |
|
55 | - $this->loadRoutesFrom(__DIR__ . '/../../routes/chief-open-routes.php'); |
|
54 | + Route::group(['prefix' => config('chief.route.prefix', 'admin'), 'middleware' => ['web']], function() { |
|
55 | + $this->loadRoutesFrom(__DIR__.'/../../routes/chief-open-routes.php'); |
|
56 | 56 | }); |
57 | 57 | } |
58 | 58 | |
59 | 59 | private function loadAdminRoutes(): void |
60 | 60 | { |
61 | - Route::group(['prefix' => config('chief.route.prefix', 'admin'), 'middleware' => ['web-chief', 'auth:chief']], function () { |
|
62 | - $this->loadRoutesFrom(__DIR__ . '/../../routes/chief-admin-routes.php'); |
|
61 | + Route::group(['prefix' => config('chief.route.prefix', 'admin'), 'middleware' => ['web-chief', 'auth:chief']], function() { |
|
62 | + $this->loadRoutesFrom(__DIR__.'/../../routes/chief-admin-routes.php'); |
|
63 | 63 | |
64 | 64 | // Add project specific chief routing... |
65 | 65 | $projectChiefRoutePath = config('chief.route.admin-filepath', null); |