zzwy2/route/manager.php

124 lines
6.6 KiB
PHP
Executable File

<?php
use think\facade\Route;
Route::group('manager', function(){
$manager = 'manager';
Route::get('', $manager . ".index/index");
Route::get('index', $manager . ".index/index");
Route::get('index/index', $manager . ".index/index");
Route::rule('login/index', $manager . ".login/index", 'GET|POST');
Route::get('logout/index', $manager . ".logout/index");
Route::rule('safe/index', $manager . ".safe/index", 'GET|POST');
Route::rule('system/index', $manager . ".system/index", 'GET|POST');
Route::rule('system/clearCache', $manager . ".system/clearCache", 'GET|POST');
Route::group('content', function() use($manager){
$controller = 'content';
Route::get('index', $manager . ".{$controller}/index");
Route::rule('page', $manager . ".{$controller}/page", 'GET|POST');
Route::get('article', $manager . ".{$controller}/article");
});
Route::group('article', function() use($manager){
$controller = 'article';
Route::rule('add', $manager . ".{$controller}/add",'GET|POST');
Route::rule('edit', $manager . ".{$controller}/edit", 'GET|POST');
Route::post('del', $manager . ".{$controller}/del");
Route::post('batchDel', $manager . ".{$controller}/batchDel");
Route::post('sort', $manager . ".{$controller}/sort");
Route::post('recommend', $manager . ".{$controller}/recommend");
Route::post('attribute', $manager . ".{$controller}/attribute"); //批量修改属性
});
Route::group('category', function() use($manager){
$controller = 'category';
Route::get('index', $manager . ".{$controller}/index");
Route::rule('add', $manager . ".{$controller}/add",'GET|POST');
Route::rule('edit', $manager . ".{$controller}/edit", 'GET|POST');
Route::post('del', $manager . ".{$controller}/del");
Route::post('batchDel', $manager . ".{$controller}/batchDel");
Route::post('sort', $manager . ".{$controller}/sort");
});
Route::group('group', function() use($manager){
$controller = 'group';
Route::get('index', $manager . ".{$controller}/index");
Route::rule('add', $manager . ".{$controller}/add",'GET|POST');
Route::rule('edit', $manager . ".{$controller}/edit", 'GET|POST');
Route::rule('rule', $manager . ".{$controller}/rule", 'GET|POST');
Route::post('del', $manager . ".{$controller}/del");
Route::post('batchDel', $manager . ".{$controller}/batchDel");
Route::post('sort', $manager . ".{$controller}/sort");
});
Route::group('link', function() use($manager){
$controller = 'link';
Route::get('index', $manager . ".{$controller}/index");
Route::rule('add', $manager . ".{$controller}/add",'GET|POST');
Route::rule('edit', $manager . ".{$controller}/edit", 'GET|POST');
Route::post('del', $manager . ".{$controller}/del");
Route::post('batchDel', $manager . ".{$controller}/batchDel");
Route::post('sort', $manager . ".{$controller}/sort");
});
Route::group('member', function() use($manager){
$controller = 'member';
Route::get('index', $manager . ".{$controller}/index");
Route::rule('add', $manager . ".{$controller}/add",'GET|POST');
Route::rule('edit', $manager . ".{$controller}/edit", 'GET|POST');
Route::rule('menuAlloter', $manager . ".{$controller}/menuAlloter", 'GET|POST');
Route::post('del', $manager . ".{$controller}/del");
Route::post('batchDel', $manager . ".{$controller}/batchDel");
Route::post('sort', $manager . ".{$controller}/sort");
});
Route::group('model', function() use($manager){
$controller = 'model';
Route::get('index', $manager . ".{$controller}/index");
Route::rule('add', $manager . ".{$controller}/add",'GET|POST');
Route::rule('edit', $manager . ".{$controller}/edit", 'GET|POST');
Route::post('del', $manager . ".{$controller}/del");
Route::post('batchDel', $manager . ".{$controller}/batchDel");
Route::post('sort', $manager . ".{$controller}/sort");
});
Route::group('page', function() use($manager){
$controller = 'page';
Route::post('sort', $manager . ".{$controller}/sort");
Route::post('del', $manager . ".{$controller}/del");
Route::rule('img', $manager . ".{$controller}/img",'GET|POST');
Route::rule('block', $manager . ".{$controller}/block", 'GET|POST');
Route::rule('text', $manager . ".{$controller}/text", 'GET|POST');
Route::rule('group', $manager . ".{$controller}/group", 'GET|POST');
Route::rule('video', $manager . ".{$controller}/video", 'GET|POST');
Route::post('batchDel', $manager . ".{$controller}/batchDel");
});
Route::group('rule', function() use($manager){
$controller = 'rule';
Route::get('index', $manager . ".{$controller}/index");
Route::rule('add', $manager . ".{$controller}/add",'GET|POST');
Route::rule('edit', $manager . ".{$controller}/edit", 'GET|POST');
Route::post('del', $manager . ".{$controller}/del");
Route::post('batchDel', $manager . ".{$controller}/batchDel");
Route::post('sort', $manager . ".{$controller}/sort");
});
Route::group('slide', function() use($manager){
$controller = 'slide';
Route::get('index', $manager . ".{$controller}/index");
Route::rule('add', $manager . ".{$controller}/add", 'GET|POST');
Route::rule('edit', $manager . ".{$controller}/edit", 'GET|POST');
Route::post('del', $manager . ".{$controller}/del");
Route::post('batchDel', $manager . ".{$controller}/batchDel");
Route::post('sort', $manager . ".{$controller}/sort");
});
Route::group('upload', function() use($manager){
$controller = 'upload';
Route::rule('video', $manager . ".{$controller}/video", 'GET|POST');
Route::rule('mark', $manager . ".{$controller}/mark", 'GET|POST');
Route::rule('image', $manager . ".{$controller}/image", 'GET|POST');
Route::rule('wangImage', $manager . ".{$controller}/wangImage", 'GET|POST');
Route::rule('tinyImage', $manager . ".{$controller}/tinyImage", 'GET|POST');
});
Route::group('file', function() use($manager){
$controller = 'file';
Route::rule('list', $manager . ".{$controller}/list", 'GET|POST');
});
Route::group('backup', function() use($manager){
$controller = 'backup';
Route::rule('back', $manager . ".{$controller}/back", 'GET|POST');
Route::rule('backcli', $manager . ".{$controller}/backcli", 'GET|POST');
});
});