Exemple #1
0
//  2013-03-03 Introduced named login routes
//	---------------------------------------------------
// 	Filters
// ------------------------------------------------
/**
 * Check whether redirect or auth required.
 * This is called before every route automatically.
 */
Route::filter('before', function () {
    return Xysti::before();
});
/**
 * Validate input
 */
Route::filter('validate', function () {
    return Xysti::validate();
});
// 	Permanent routes
// ------------------------------------------------
/**
 * Redirect the homepage
 */
Route::get('/', function () {
    return Redirect::to('home');
});
/**
 * Error requests
 */
Route::get('error/(:num)', function ($number) {
    return Xysti::error($number);
});