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