mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
23 lines
434 B
PHP
23 lines
434 B
PHP
<?php
|
|
|
|
/**
|
|
* Register CMS routes before all user routes.
|
|
*/
|
|
App::before(function ($request) {
|
|
/*
|
|
* Extensibility
|
|
*/
|
|
Event::fire('cms.beforeRoute');
|
|
|
|
/*
|
|
* The CMS module intercepts all URLs that were not
|
|
* handled by the back-end modules.
|
|
*/
|
|
Route::any('{slug}', 'Cms\Classes\CmsController@run')->where('slug', '(.*)?');
|
|
|
|
/*
|
|
* Extensibility
|
|
*/
|
|
Event::fire('cms.route');
|
|
});
|