winter/modules/cms/routes.php
2015-05-02 13:53:05 +10:00

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');
});