winter/modules/cms/routes.php
Stefan Talen 06890d711a Merge branch 'develop' of https://github.com/octobercms/october into feature/PSR-2
Conflicts:
	modules/backend/behaviors/UserPreferencesModel.php
	modules/cms/classes/Controller.php
	modules/system/classes/CombineAssets.php
2014-10-16 18:44:18 +02:00

15 lines
293 B
PHP

<?php
/*
* Register CMS routes before all user routes.
*/
App::before(function ($request) {
/*
* The CMS module intercepts all URLs that were not
* handled by the back-end modules.
*/
Route::any('{slug}', 'Cms\Classes\Controller@run')->where('slug', '(.*)?');
});