示例#1
0
//删除分类信息
Macaw::get('/admin/category/delete/(:num)', function ($slug) {
    $CategoryController = new CategoryController();
    $CategoryController->category_delete($slug);
});
//分类回收站
Macaw::get('/admin/category/recycle/', 'CategoryController@category_recycle');
//分类回收站分页
Macaw::get('/admin/category/recycle/(:num)', function ($slug) {
    $CategoryController = new CategoryController();
    $CategoryController->category_recycle($slug);
});
//恢复分类
Macaw::get('/admin/category/getrecycle/(:num)', function ($slug) {
    $CategoryController = new CategoryController();
    $CategoryController->category_getrecycle($slug);
});
//删除分类
Macaw::get('/admin/category/reldel/(:num)', function ($slug) {
    $CategoryController = new CategoryController();
    $CategoryController->category_reldel($slug);
});
//内容管理
Macaw::get('/admin/article/', 'ArticleController@home');
//内容分页
Macaw::get('/admin/article/(:num)', function ($slug) {
    $article = new ArticleController();
    $article->home($slug);
});
//添加内容
Macaw::get('/admin/article/add/', 'ArticleController@articel_add');