Skip to content

Commit

Permalink
Remove redundant backend route (#1258)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Thomson <[email protected]>
  • Loading branch information
mjauvin and bennothommo authored Dec 7, 2024
1 parent 65ecde4 commit a7f9ce5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions modules/backend/routes.php
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
Event::fire('backend.beforeRoute');

/*
* Other pages
* Route everything to `Backend\Classes\BackendController`, which itself acts as a router for the Backend.
*/
Route::group([
'middleware' => ['web'],
@@ -29,11 +29,6 @@
Route::any('{slug?}', 'Backend\Classes\BackendController@run')->where('slug', '(.*)?');
});

/*
* Entry point
*/
Route::any(Config::get('cms.backendUri', 'backend'), 'Backend\Classes\BackendController@run')->middleware('web');

/**
* @event backend.route
* Fires after backend routes have been added

0 comments on commit a7f9ce5

Please sign in to comment.