小更新
This commit is contained in:
@@ -12,13 +12,31 @@ use think\facade\Route;
|
||||
|
||||
Route::rule('/', 'Index/index');
|
||||
Route::rule('search', 'Index/search');
|
||||
Route::rule('lists', 'Index/lists');
|
||||
Route::rule('detail', 'Index/detail');
|
||||
Route::rule('category', 'Index/category');
|
||||
Route::rule('topic-:id', 'Index/topic');
|
||||
|
||||
Route::group('admin', function(){
|
||||
Route::group('admin', function () {
|
||||
Route::rule('/', 'admin.Index/index');
|
||||
Route::rule('login', 'admin.Index/login');
|
||||
Route::rule('logout', 'admin.Index/logout');
|
||||
Route::rule(':controller/:function', 'admin.:controller/:function');
|
||||
});
|
||||
|
||||
Route::group('user', function () {
|
||||
Route::rule('/', 'admin.Index/index');
|
||||
Route::rule('login', 'user.Index/login');
|
||||
Route::rule('logout', 'user.Index/logout');
|
||||
Route::rule('register', 'user.Index/register');
|
||||
Route::rule(':controller/:function', 'user.:controller/:function');
|
||||
});
|
||||
|
||||
Route::group('api', function () {
|
||||
Route::rule('/', 'admin.Index/index');
|
||||
Route::rule('login', 'api.Index/login');
|
||||
Route::rule('register', 'api.Index/register');
|
||||
Route::rule(':controller/:function', 'api.:controller/:function');
|
||||
});
|
||||
|
||||
Route::miss('Index/miss');
|
||||
Reference in New Issue
Block a user