winter/modules/backend/routes.php

19 lines
462 B
PHP
Raw Normal View History

2014-05-14 23:24:20 +10:00
<?php
2015-01-03 12:41:23 +01:00
/**
* Register Backend routes before all user routes.
2014-05-14 23:24:20 +10:00
*/
2014-10-10 23:16:22 +02:00
App::before(function ($request) {
/*
* Other pages
*/
2014-10-10 23:16:22 +02:00
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');
});