winter/modules/cms/routes.php

20 lines
424 B
PHP
Raw Normal View History

2014-05-14 23:24:20 +10:00
<?php
/*
* Register CMS routes before all user routes.
2014-05-14 23:24:20 +10:00
*/
App::before(function($request) {
2014-05-14 23:24:20 +10:00
/*
* 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', '(.*)?');
});