winter/modules/cms/routes.php
2014-10-11 01:56:53 +02:00

20 lines
425 B
PHP

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