修复bug,设置router
This commit is contained in:
@@ -10,28 +10,29 @@
|
||||
// +----------------------------------------------------------------------
|
||||
use think\facade\Route;
|
||||
|
||||
Route::rule('/', 'Front/index');
|
||||
Route::rule('search', 'Front/search');
|
||||
Route::rule('lists', 'Front/lists');
|
||||
Route::rule('detail-:id', 'Front/detail');
|
||||
Route::rule('category', 'Front/category');
|
||||
Route::rule('topic-:id', 'Front/topic');
|
||||
Route::rule('form/:id/:name', 'Front/form');
|
||||
Route::rule('front/:function', 'Front/:function');
|
||||
Route::rule('upload/:function', 'Upload/:function');
|
||||
Route::rule('/', 'Front.Index/index');
|
||||
Route::rule('search', 'Front.Content/search');
|
||||
Route::rule('lists', 'Front.Content/lists');
|
||||
Route::rule('detail-:id', 'Front.Content/detail');
|
||||
Route::rule('category', 'Front.Content/category');
|
||||
Route::rule('topic-:id', 'Front.Content/topic');
|
||||
Route::rule('form/:id/:name', 'Front.Form/index');
|
||||
Route::rule('front/:controller/:function', 'Front.:controller/:function');
|
||||
|
||||
Route::group('admin', function () {
|
||||
Route::rule('/', 'admin.Index/index');
|
||||
Route::rule('login', 'admin.Index/login');
|
||||
Route::rule('logout', 'admin.Index/logout');
|
||||
Route::rule('upload/:function', 'Upload/:function');
|
||||
Route::rule(':controller/:function', 'admin.:controller/:function');
|
||||
});
|
||||
|
||||
Route::group('user', function () {
|
||||
Route::rule('/', 'admin.Index/index');
|
||||
Route::rule('/', 'user.Index/index');
|
||||
Route::rule('login', 'user.Index/login');
|
||||
Route::rule('logout', 'user.Index/logout');
|
||||
Route::rule('register', 'user.Index/register');
|
||||
Route::rule('upload/:function', 'Upload/:function');
|
||||
Route::rule(':controller/:function', 'user.:controller/:function');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user