TypiCMS CMS为什么在下面的路由表中只有 过滤路由 没有设置路由 那是在哪里设置路由的

<?php
/**
* Register routes filter classes
*/
Route::filter('public.checkLocale', 'TypiCMS\Filters\PublicFilter@checkLocale');
Route::filter('admin.setLocale', 'TypiCMS\Filters\AdminFilter@setLocale');
Route::filter('visitor.publicAccess', 'TypiCMS\Filters\UsersFilter@publicAccess');
Route::filter('visitor.mayRegister', 'TypiCMS\Filters\UsersFilter@mayRegister');
Route::filter('user.auth', 'TypiCMS\Filters\UsersFilter@auth');
Route::filter('user.hasAccess', 'TypiCMS\Filters\UsersFilter@hasAccess');
Route::filter('user.inGroup', 'TypiCMS\Filters\UsersFilter@inGroup');

/**
* Route filter "public"
/
foreach (Config::get('app.locales') as $locale) {
Route::when($locale, 'public.checkLocale');
Route::when($locale.'/
', 'public.checkLocale');
}

/**
* Route filter admin side
/
Route::when('admin', 'admin.setLocale|user.auth|user.hasAccess');
Route::when('admin/
', 'admin.setLocale|user.auth|user.hasAccess');
Route::when('api', 'admin.setLocale');
Route::when('api/', 'admin.setLocale');
Route::when('api', 'user.auth|user.hasAccess', ['post', 'put', 'patch', 'delete']);
Route::when('api/
', 'user.auth|user.hasAccess', ['post', 'put', 'patch', 'delete']);
已邀请:

要回复问题请先登录注册