winter/modules/cms/routes.php
2017-05-13 22:18:13 +10:00

23 lines
453 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', '(.*)?')->middleware('web');
/*
* Extensibility
*/
Event::fire('cms.route');
});