winter/modules/backend/routes.php

21 lines
461 B
PHP
Raw Normal View History

2014-05-14 23:24:20 +10:00
<?php
/*
* Register Backend 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
/*
* Other pages
*/
Route::group(['prefix' => Config::get('cms.backendUri', 'backend')], function() {
Route::any('{slug}', 'Backend\Classes\BackendController@run')->where('slug', '(.*)?');
});
2014-05-14 23:24:20 +10:00
/*
* Entry point
*/
Route::any(Config::get('cms.backendUri', 'backend'), 'Backend\Classes\BackendController@run');
2014-05-14 23:24:20 +10:00
});