winter/modules/cms/routes.php

13 lines
294 B
PHP
Raw Normal View History

2014-05-14 23:24:20 +10:00
<?php
2015-01-03 12:41:23 +01:00
/**
* Register CMS routes before all user routes.
2014-05-14 23:24:20 +10:00
*/
2014-10-11 01:56:53 +02:00
App::before(function ($request) {
/*
2015-01-03 12:41:23 +01:00
* The CMS module intercepts all URLs that were not
* handled by the back-end modules.
*/
Route::any('{slug}', 'Cms\Classes\CmsController@run')->where('slug', '(.*)?');
});