2014-05-14 23:24:20 +10:00
|
|
|
<?php
|
|
|
|
|
2015-01-03 12:41:23 +01:00
|
|
|
/**
|
2014-07-12 13:16:16 +10:00
|
|
|
* Register CMS routes before all user routes.
|
2014-05-14 23:24:20 +10:00
|
|
|
*/
|
2014-10-11 01:56:53 +02:00
|
|
|
App::before(function ($request) {
|
2015-05-02 13:53:05 +10:00
|
|
|
/*
|
|
|
|
* Extensibility
|
|
|
|
*/
|
|
|
|
Event::fire('cms.beforeRoute');
|
|
|
|
|
2014-07-12 13:16:16 +10:00
|
|
|
/*
|
2015-01-03 12:41:23 +01:00
|
|
|
* The CMS module intercepts all URLs that were not
|
2014-07-12 13:16:16 +10:00
|
|
|
* handled by the back-end modules.
|
|
|
|
*/
|
2017-05-13 22:18:13 +10:00
|
|
|
Route::any('{slug}', 'Cms\Classes\CmsController@run')->where('slug', '(.*)?')->middleware('web');
|
2015-05-02 13:53:05 +10:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Extensibility
|
|
|
|
*/
|
|
|
|
Event::fire('cms.route');
|
2014-07-12 13:16:16 +10:00
|
|
|
});
|